INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]   Go Down

Author Topic: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)  (Read 65503 times)

ThoBar

  • Citizen of the Universe
  • *****
  • Posts: 992
  • Was confishy

Beauty, thanks mate!
Logged

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1588

Getting somewhere, slowly but surely with my 'secret project' ;)
Would now appreciate a little help-

I have a created a playlist. I'm now trying to grab the full path of the first file from the playlist & have this available for use later on in the code as a parameter here:
Quote
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "1.exe";
proc.StartInfo.Arguments = "Filename wants to go here";
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.RedirectStandardOutput = false;
proc.Start();
proc.WaitForExit();


Edit: Addded code snippet to make things a little clearer :)

Cheers

-Leezer-
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D

Have you seen the sample scripts area:
http://yabb.jriver.com/interact/index.php?topic=33020.0

You'll end up with a loop through the playlist

       
Quote
for(int counter = 0; counter < myPlaylist.GetNumberFiles(); ++counter)
        {
              //Get Individual File From Playlist
              MediaJukebox.MJFileAutomation mediaFile = myPlaylist.GetFile(counter).GetAvailableFilename());

              //Get File Name
              string fileName = mediaFile.FileName;

              //Do your business with File...             
        }       


I've not tested this, but it should be quite close.

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D

You also might be interested to know that you can run the scripts
without the plugin, a command line tool called ScriptRunner is provided.
The plugin uses this command line tool when it runs the scripts.
The text you see is just the output from this.

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1588

Have seen the sample scripts, but nothing quite has what I'm getting at :)
I've corrected  your code (I think anyway  :P ) to the current MediaCenter as opposed to MediaJukebox format, and removed again what I think was an extra bracket from the end of the 4th line, which leaves me with this:
Quote
        //Open Playlist
        for(int counter = 0; counter < AVI.GetNumberFiles(); ++counter)
        {
              //Get Individual File From Playlist
              MediaCenter.IMJFilesAutomation mediaFile AVI.GetFile(counter).GetAvailableFilename();

              //Get File Name
              string fileName = mediaFile.FileName;

I'm now getting this error with all my code removed (Was getting several more before my 'corrections', feel free to shoot me!):
Quote
c:\Program Files\J River\Media Center 12\Plugins\Script Plugin\Scripts\MKV Mux.cs(14,56) : error CS1002: ; expected

 The Failure Occured
 In Class Object CSScriptLibrary
 when calling Method System.String Compile(System.String)
 
 The following Inner Exception was caused
 
 Everything that follows forms the stack Trace:

   at csscript.CSExecutor.Compile(String scriptFileName)
   at csscript.CSExecutor.Compile(String scriptFile, String assemblyFile, Boolean debugBuild)
   at CSScriptLibrary.CSScript.CompileWithConfig(String scriptFile, String assemblyFile, Boolean debugBuild, String cssConfigFile)
   at ScriptRunner.ScriptRunner.Main(String[] args)
The semi-colon it wants me to add is after mediaFile, adding it gives this:
Quote
c:\Program Files\J River\Media Center 12\Plugins\Script Plugin\Scripts\MKV Mux.cs(11,40) : error CS0103: The name 'AVI' does not exist in the current context
c:\Program Files\J River\Media Center 12\Plugins\Script Plugin\Scripts\MKV Mux.cs(14,43) : error CS0103: The name 'AVI' does not exist in the current context
c:\Program Files\J River\Media Center 12\Plugins\Script Plugin\Scripts\MKV Mux.cs(16,29) : error CS0117: 'MediaCenter.IMJFilesAutomation' does not contain a definition for 'FileName'


 The Failure Occured
 In Class Object CSScriptLibrary
 when calling Method System.String Compile(System.String)
 
 The following Inner Exception was caused
 
 Everything that follows forms the stack Trace:

   at csscript.CSExecutor.Compile(String scriptFileName)
   at csscript.CSExecutor.Compile(String scriptFile, String assemblyFile, Boolean debugBuild)
   at CSScriptLibrary.CSScript.CompileWithConfig(String scriptFile, String assemblyFile, Boolean debugBuild, String cssConfigFile)
   at ScriptRunner.ScriptRunner.Main(String[] args)

If I ever get what I'm trying to do right, I'll post it, but ATM I'd rather not say :)

Cheers

-Leezer-
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D

Ooops... Mine should have been more like this:

for(int counter = 0; counter < myPlaylist.GetNumberFiles(); ++counter)
{
        //Get Individual File From Playlist
        MediaJukebox.MJFileAutomation mediaFile = myPlaylist.GetFile(counter);

        //Get File Name
        string fileName = mediaFile.FileName;

        //Do your business with File...             
}       

I'll be back in a bit, I'm in the middle of destroying lots of very important data...

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D

OK that didn't work, I'm a bit out of touch on these :-)
This ones tried and tested
http://yabb.jriver.com/interact/index.php?topic=33020.msg316126#msg316126

yia_hara

  • Member
  • *
  • Posts: 3

Hello.  I'm trying to get a hold of the plugin but it is no longer available at this link: http://uppit.com/A01I0F.  Is there another place from where it can be downloaded? 

Thanks!
Logged

yia_hara

  • Member
  • *
  • Posts: 3

Got it!  Thank you.
Logged

Streaker

  • Regular Member
  • Recent member
  • *
  • Posts: 35

The latest link appears dead. Could I get this plugin?

Thanks!
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D

Will upload it tonight,
I've also just submitted it to be added to the skins and plugins area

alspoll

  • World Citizen
  • ***
  • Posts: 118
Re: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)
« Reply #61 on: September 01, 2008, 09:01:18 pm »


Imports System
Imports System.Windows.Forms
' //css_reference System.dll;
' //css_reference System.Windows.Forms.dll;
' //css_reference MediaCenter.dll;
Module Script   
Sub Init( mediaCenterInterface as MediaCenter.MCAutomation, outputTextBox as Textbox)
              dim lijst as MediaCenter.IMJCurPlaylistAutomation
              dim aantal as integer
              lijst=mediaCenterInterface.GetCurPlaylist ( ) 
              aantal=lijst.GetNumberFiles()
              MessageBox.Show(aantal)
    End Sub       
End Module

I tried the above but get I the following error:

Constructor on type 'Script' not found.

Any ideas?

TIA,

AL
Logged

park

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2358
  • I wish I had more to say!
Re: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)
« Reply #62 on: September 02, 2008, 12:01:06 am »

Does this work for MC13 on vista? I tried to install it in the plugins path in MC13, but MC throws up an error saying that it cant start the plugin.
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)
« Reply #63 on: September 03, 2008, 08:43:37 am »

I tried the above but get I the following error:

Constructor on type 'Script' not found.

Any ideas?

TIA,

AL


Change the Init line to match
Sub Init( mediaCenterInterface as MediaCenter.MCAutomation)
You've copied from an older script where by the the plugin used to need a reference to the textbox.
It doesn't need this anymore.

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)
« Reply #64 on: September 03, 2008, 08:44:38 am »

Does this work for MC13 on vista? I tried to install it in the plugins path in MC13, but MC throws up an error saying that it cant start the plugin.

Not yet, i've not had a chance to look into it.  It's on my to do list.
I've pointed out else where that you can however use the script runner component to run the scripts standalone without the plugin.

alspoll

  • World Citizen
  • ***
  • Posts: 118
Re: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)
« Reply #65 on: September 06, 2008, 05:17:24 pm »

Change the Init line to match
Sub Init( mediaCenterInterface as MediaCenter.MCAutomation)
You've copied from an older script where by the the plugin used to need a reference to the textbox.
It doesn't need this anymore.

I made the change, but I still get the same error.

Code: [Select]
Compiling Script...
Script Compiled Successfully!
Running Script...

Failure Running Script :-
Constructor on type 'Script' not found.

 The Failure Occured
 In Class Object mscorlib
 when calling Method System.Object CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[])
 
 The following Inner Exception was caused
 
 Everything that follows forms the stack Trace:


Server stack trace:
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Reflection.Assembly.CreateInstance(String typeName)
   at CSScriptLibrary.AsmBrowser.CreateInstance(String typeName)
   at CSScriptLibrary.AsmRemoteBrowser.CreateInstance(String typeName)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at CSScriptLibrary.IAsmBrowser.CreateInstance(String typeName)
   at CSScriptLibrary.AsmHelper.CreateObject(String typeName)
   at ScriptRunner.ScriptRunner.Main(String[] args)

Any ideas?

Here is what I have pasted in the script:
Code: [Select]
Imports System
Imports System.Windows.Forms
' //css_reference System.dll;
' //css_reference System.Windows.Forms.dll;
' //css_reference MediaCenter.dll;
Module Script   
Sub Init(mediaCenterInterface as MediaCenter.MCAutomation)
              dim lijst as MediaCenter.IMJCurPlaylistAutomation
              dim aantal as integer
              lijst=mediaCenterInterface.GetCurPlaylist ( )
              aantal=lijst.GetNumberFiles()
              MessageBox.Show(aantal)
    End Sub       
End Module

TIA

AL
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)
« Reply #66 on: September 07, 2008, 01:50:35 am »

Quote
Imports System
Imports System.Windows.Forms
' //css_reference System.dll;
' //css_reference System.Windows.Forms.dll;
' //css_reference MediaCenter.dll;
Class Script
    Inherits MarshalByRefObject   
    Sub Init( mediaCenterInterface as MediaCenter.MCAutomation)
             
              dim lijst as MediaCenter.IMJCurPlaylistAutomation
              dim aantal as integer
              lijst=mediaCenterInterface.GetCurPlaylist ( )
              aantal=lijst.GetNumberFiles()
              MessageBox.Show(aantal)
    End Sub       
End Class

Sorry forgot there were other changes too.
Try that one.

quirtep

  • Regular Member
  • Recent member
  • *
  • Posts: 44
  • I'm a llama!
Media Center 13
« Reply #67 on: September 11, 2008, 06:10:41 am »

The plugin doesn't work with the new MC13.  (I know, 13 is still Beta - certainly not trying to rush anyone)
Logged

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750

This plugin would not be possible without the exceptional genius of Oleg Shilo
who wrote the C# Scripting engine
http://www.codeproject.com/csharp/cs-script_for_CP.asp
Note: that link is broken.
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D

Note: that link is broken.

Hmm seems to be working here ok?

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750

It gave me a "no such project" page but following your prompt it now works. Thanks.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?

I got this:
Quote
Welcome to the Code Project
Your place for free C++, C# and .NET articles, code snippets, discussions, news and the best bunch of developers on the net.

Page Not Found
Unfortunately the page, image or download you are looking for is not on our servers. Can you please recheck your URL or try searching again from our homepage.
Logged

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750

Now I get that failure too, but after three browser refreshes, success. Odd.
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)
« Reply #73 on: September 27, 2012, 02:03:12 pm »

Quote from: broncodan
Hi,

I have previously used this plugin (although a long time ago) for a script someone helped me out with regarding copying lyrics.  I wanted to run this again but am getting an error message.  My guess is that it isn't compatabile with MC17.

Is there a way to run my script now in MC17?  Thanks in advance for your help.

Message above received by PM.

Response:

Hi Broncodan,
The scripting plugin is still working in MC17 and 18.  What error message are you getting?
Cheers
Chris

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Scripting Plugin (Abit like Visual Basic for Applications, only .NET for MC!)
« Reply #74 on: September 27, 2012, 03:51:28 pm »

It appears there is a permissions issue with newer versions of window where the script plugin writes scripts to
C:\Program Files (x86)\J River\Media Center 12\Plugins\Script Plugin\Scripts

It should probably be writing instead to a user directory.
Since I'm unlikely to be recompiling this one any time soon (as I don't have a compiler setup on my home machine any more) I'd suggest the following work around.

The solution is just to give write security access to the users group for the above directory.

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750

Make sure you have the latest .NET Framework 2.0 (2.0.50727) installed prior to running the install
program, available here
That page is now Not Found. I found .NET Framework 2 here http://www.microsoft.com/en-gb/download/details.aspx?id=6523 and this worked.

By the way, using the currently latest .NET framework - V4 - the plug-in install failed with this error seven times:



despite then saying:



Perhaps this failure is caused by the V2 path being hard-wired in to the plug-in, and perhaps this could be easily remedied such that the install will then work on later .NET framework versions.
Logged

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750

Installation
...
Go through the setup program.

Here it said:



i.e. "Media Center 12", even though Media Center 12 is not and have never been installed on this machine. The version installed ins Media Centre 18.

I didn't spot this at the time, proceeded, and attempting to run the Scripting Plugin in MC18 failed with an error.

Perhaps this reference to MC12 was hard-coded in error, and perhaps it would be easy to remedy this so the install targets the installed version of MC.

Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D

There's no easy way I can detect what version of MC is installed in the installer.
It works fine when installed to the MC12 directory, or it can be moved elsewhere.

I will update the .NET framework 2.0 link thanks.
I believe the plugin requires the .NET framework 2.0 in order to work, so the hard coded aspect using regasm is kind of irrelivent.
I believe I eventually found that regasm wasn't even needed but it's about 4 years since I last looked at it tbh.
I may update it to .NET 4.0 at some point.  Unfortunately I don't have much time for these projects anymore.

Thanks
Chris.

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750

There's no easy way I can detect what version of MC is installed in the installer.
OK.

I will update the .NET framework 2.0 link thanks.
I believe the plugin requires the .NET framework 2.0 in order to work

OK. Perhaps then update the instructions:

Quote
Make sure you have the latest .NET Framework 2.0 (2.0.50727) installed

to clarify that the latest version is not suitable.

Thanks for this plugin!
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608

There's no easy way I can detect what version of MC is installed in the installer.

I don't know what installer you're using, or what limitations it has, but wouldn't it be possible to do some sort of pre-install script (or tiny executable) to check this?

There are a number of ways to check the current version via the different automation interfaces of MC.  The easiest would be to get a copy of the MJVersionAutomation COM interface.  That would work well even if the user had multiple versions installed, because the COM interface loads whatever version was last used/registered by the system.

Of course, if getting a COM object is too painful, you could even just hack it by looking in System32 for a file called MC##.exe.  The current highest-installed version would be the highest integer value of ##.  This wouldn't, of course, help if someone installed MC18, but kept using MC17 for some reason, but it would cover most people most of the time.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608

PS.  Of course, like you said, there isn't much time.  So, perhaps that's what you meant by "easily".   ::) ;D
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750

I think Glynor is correct and all those things are possible - but my vote would be for Mr ChriZ to save what time he can give for the plug-in to essentials, and to remedy this issue by just removing the MC12 default install path and rewording the dialog to e.g. "Please browse to the Media Centre program folder."
Logged

Rubberduck0

  • Junior Woodchuck
  • **
  • Posts: 75

I hope this is the right thread for scripting related questions...

I am currently working on a script which should make it easier to get rid of duplicate tracks. For a dialog where the user can edit the track information, I would like to have a list of all available genres. But I didn't find an object which would give me a list of all items of database field (here: genre).

Did I miss something or is there really no way to do some simple database queries?
Logged

Rubberduck0

  • Junior Woodchuck
  • **
  • Posts: 75

So, my clean-up duplicates script is already working pretty good. Now I use AllMusic (rovi) API to get the track data, but I would like to change to Discogs. There is a .NET library DiscogsNet, which should make it easy to access the Discogs API.

As I am a C# and .NET newbie I do not know how to use this:
* It's a bunch of DLL files: where to put them?
* How to I reference them in the script?

I tried putting the files in the same folder as the scripting plugin and added "using DiscogsNet" to the script, but this didn't work.
As soon as I can get this library to work I know how to continue...
Please, have mercy with a noob ;-)
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D

Hi Rubberduck

If you look at the top of the script I think you can see how dll's are imported with the css tag.
Failing  that go take a look at Oleg Shio's site.  it will give you better instruction.
There may be a problem with the fact the plugin was written with .NET 2. 
I can't remember if the scripts are also limited to .NET 2.
If so at present it may not work with newer libraries.
I will en-devour to do an update on the plugin sometime soon to .NET 4.0

However I've recently bought a house and so things are somewhat chaotic at present.  It could be a while!

Cheers
Chris

Rubberduck0

  • Junior Woodchuck
  • **
  • Posts: 75

Hi Mr. ChiZ,

Thanks for the answer. Unfortunately it didn't help me, but I think this is due to my little knowledge:
* The DiscogsNet library seems indeed not to be suitable for .NET 2.0. So I tried to read the JSON response with the Json.Net library, as there is a version for 2.0, which I downloaded.
* But I could not find any location to copy the files to to make it work. I tried the script dir (where my .cs file is), Windows/system32 (as this is reported as the current dir from Directory.GetCurrentDirectory(). If copying it to System32 I at least avoided an error during compiling. So, I think the .dll was found, but then it gave me a runtime error because depending things were not found.
* I also looked at Oleg Shio's page and I found something which might be the problem: if the .dll name and the namespace is different (which is the case for Json.Net), then it may not work, and that there is a back-door. But it is not explained what this back-door is...

Soon enough I'll write a JSON parser myself... ;-)
Logged

Rubberduck0

  • Junior Woodchuck
  • **
  • Posts: 75

I solved the JSON problem with a code snippet I found (MiniJSON). Actually I am almost done and I am surprised how it turned out to be. The script finds duplicate files of all files in playing now, suggests to keep the best one (user can select), merges the playlists the duplicate files are in, presents a user dialog to edit the artist, album, track, playlists, etc., it is possible to get track info from two online databases (Discogs and AllMusic), then it moves the file to the final folder, and also a cover image is downloaded.
As soon as it has all the bells and whistles on it I will post it here.

However, I come across another problem I cannot solve. While editing the track info in a dialog, I start playback of that song. After editing, the song is stopped, and the next track is played while editing. But after about 5 mins I always get a runtime error (see at end). Below is the relevant code I use to handle the playback. Can you help me and tell me what I am doing wrong?

Code: [Select]
class Script : MarshalByRefObject {
  PlayBack playback; // see PlayBack class below
  MediaCenter.IMJCurPlaylistAutomation fpl; // will hold the Playing Now playlist of the main zone (Player)

  public void Init(MediaCenter.MCAutomation mediaCenterInterface) {
    fpl = mediaCenterInterface.GetZones().GetZone(0).GetCurPlaylist();
    playback = new PlayBack(ref mediaCenterInterface, fpl); // does not make a difference if I use 'ref' or not
    ...
    // playback is started and stopped in the Init method
    ...
  }
  ...
  private function () {
    // there are also some functions where playback is started and stopped
  }
  ...
}


public class PlayBack {
  private MediaCenter.MCAutomation mca;
  private MediaCenter.IMJCurPlaylistAutomation cpla;
  private bool songplaying = false; // In order to play a song with the script, it must be added to the playing now list (first file), this var holds the information, if a song was added or not (for correct removal)

  public PlayBack (ref MediaCenter.MCAutomation mcao, MediaCenter.IMJCurPlaylistAutomation cplao) {
    mca = mcao;
    cpla = cplao;
  }

  public bool play(int key, int startpos) {
    try {
      if (songplaying) stop();
      cpla.AddFileByKey(key, 0);
      cpla.Position = 0;
      MediaCenter.IMJPlaybackAutomation play = mca.GetPlayback();
      play.Play();
      play.Position = startpos;
      if (play.State!=MediaCenter.MJPlaybackStates.PLAYSTATE_STOPPED) songplaying = true;
    }
    catch (Exception _Exception) {
      Console.WriteLine("Exception caught in call PlayBack method play: {0}", _Exception.ToString());
      return false;
    }
    return songplaying;
  }
 
  public void stop() {
    try {
      if (!songplaying) return;
      MediaCenter.IMJPlaybackAutomation play = mca.GetPlayback();
      play.Stop();
      cpla.RemoveFile(0);
      songplaying = false;
    }
    catch (Exception _Exception) {
      Console.WriteLine("Exception caught in call PlayBack method stop: {0}", _Exception.ToString());
    }
  }
}

Code: [Select]
Exception caught in call PlayBack method stop: System.Runtime.Remoting.RemotingException: The object "/6993d6c8_ee6b_4f98_8fe4_e11b55ca8838/rgndhpe+duq0elupmsdmadot_7.rem" was disconnected or is not present on the server.

Server stack trace:
   bei System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWellKnownObject(IMessage msg)
   bei System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)

Exception rethrown at [0]:
   bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   bei MediaCenter.IMJAutomation.GetPlayback()
   bei PlayBack.stop() in c:\Program Files (x86)\J River\Media Center 18\Plugins\Script Plugin\Scripts\CleanDuplicates.cs:Zeile 1916.
Exception caught in call PlayBack method stop: System.Runtime.Remoting.RemotingException: The object "/6993d6c8_ee6b_4f98_8fe4_e11b55ca8838/rgndhpe+duq0elupmsdmadot_7.rem" was disconnected or is not present on the server.

Server stack trace:
   bei System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWellKnownObject(IMessage msg)
   bei System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)

Exception rethrown at [0]:
   bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   bei MediaCenter.IMJAutomation.GetPlayback()
   bei PlayBack.stop() in c:\Program Files (x86)\J River\Media Center 18\Plugins\Script Plugin\Scripts\CleanDuplicates.cs:Zeile 1916.

Failure Running Script :-
Ein Aufrufziel hat einen Ausnahmefehler verursacht.

 The Failure Occured
 In Class Object mscorlib
 when calling Method System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)
 
 The following Inner Exception was causedSystem.Runtime.Remoting.RemotingException: The object "/6993d6c8_ee6b_4f98_8fe4_e11b55ca8838/gwkczvjtd4ufsaevlk+rev4e_10.rem" was disconnected or is not present on the server.

Server stack trace:
   bei System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWellKnownObject(IMessage msg)
   bei System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)

Exception rethrown at [0]:
   bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   bei MediaCenter.IMJCurPlaylistAutomation.GetFile(Int32 nFile)
   bei Script.Init(MCAutomation mediaCenterInterface) in c:\Program Files (x86)\J River\Media Center 18\Plugins\Script Plugin\Scripts\CleanDuplicates.cs:Zeile 250.
 
 Everything that follows forms the stack Trace:


Server stack trace:
   bei System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bei System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   bei System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
   bei CSScriptLibrary.AsmBrowser.Invoke(Object obj, String methodName, Object[] list)
   bei CSScriptLibrary.AsmRemoteBrowser.Invoke(Object obj, String methodName, Object[] list)
   bei System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   bei System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
   bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   bei CSScriptLibrary.IAsmBrowser.Invoke(Object obj, String methodName, Object[] list)
   bei CSScriptLibrary.AsmHelper.InvokeInst(Object obj, String methodName, Object[] list)
   bei ScriptRunner.ScriptRunner.Main(String[] args)
Logged
Pages: 1 [2]   Go Up