home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
New Webinterface
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="thechad" data-source="post: 95466" data-attributes="member: 11382"><p>I too had a look at adapting the Cassini web server to work as a plugin for the TVServer service, however I ran into problems in the appdomain area as well. But this was while the plugin is starting up and as the TVServer uses Remoting I don't need access to the MP AppDomain as I can just use the provided dll (I think?).</p><p></p><p>I can run library fine from a test console app but when I run as a plugin i get an exception </p><p></p><p>[CODE]5/12/2006 7:00:20 PM Exception :System.InvalidCastException: Unable to cast transparent proxy to type 'Cassini.Host'.</p><p> at Cassini.Server.CreateHost()</p><p> at Cassini.Server..ctor(Int32 port, String virtualPath, String physicalPath)</p><p> at TVServerWeb.TVServerWeb.Start()</p><p>5/12/2006 7:00:20 PM Exception :Unable to cast transparent proxy to type 'Cassini.Host'.</p><p>5/12/2006 7:00:20 PM site :Void CreateHost()</p><p>5/12/2006 7:00:20 PM source :MPWeb</p><p>5/12/2006 7:00:20 PM stacktrace: at Cassini.Server.CreateHost()</p><p> at Cassini.Server..ctor(Int32 port, String virtualPath, String physicalPath)</p><p> at TVServerWeb.TVServerWeb.Start()[/CODE]</p><p></p><p>This happens on the cast to Host type in the createHost function</p><p>[CODE]private void CreateHost() {</p><p> _host = (Host)ApplicationHost.CreateApplicationHost(typeof(Host), _virtualPath, _physicalPath);</p><p> _host.Configure(this, _port, _virtualPath, _physicalPath, _installPath);</p><p> }[/CODE]</p><p></p><p>I had a look through the source of the playlist manager and it looks no different to what I am trying to do.</p><p></p><p>Any tips cause I am out of my league here?</p><p></p><p>I agree Sam that WCF is looking like it may be the easiest and trouble free way to implement this.</p><p></p><p>On another note in regards to the appdomain issue and how jlewalle got around it in the playlist manager plugin, is this the best way to do it or would another layer possibly remoting in MP be better as it did not seem to flexible for change from the code I looked at, however as I said I am out of my league here.</p><p></p><p>Cheers for the rant,</p><p></p><p>Chad</p></blockquote><p></p>
[QUOTE="thechad, post: 95466, member: 11382"] I too had a look at adapting the Cassini web server to work as a plugin for the TVServer service, however I ran into problems in the appdomain area as well. But this was while the plugin is starting up and as the TVServer uses Remoting I don't need access to the MP AppDomain as I can just use the provided dll (I think?). I can run library fine from a test console app but when I run as a plugin i get an exception [CODE]5/12/2006 7:00:20 PM Exception :System.InvalidCastException: Unable to cast transparent proxy to type 'Cassini.Host'. at Cassini.Server.CreateHost() at Cassini.Server..ctor(Int32 port, String virtualPath, String physicalPath) at TVServerWeb.TVServerWeb.Start() 5/12/2006 7:00:20 PM Exception :Unable to cast transparent proxy to type 'Cassini.Host'. 5/12/2006 7:00:20 PM site :Void CreateHost() 5/12/2006 7:00:20 PM source :MPWeb 5/12/2006 7:00:20 PM stacktrace: at Cassini.Server.CreateHost() at Cassini.Server..ctor(Int32 port, String virtualPath, String physicalPath) at TVServerWeb.TVServerWeb.Start()[/CODE] This happens on the cast to Host type in the createHost function [CODE]private void CreateHost() { _host = (Host)ApplicationHost.CreateApplicationHost(typeof(Host), _virtualPath, _physicalPath); _host.Configure(this, _port, _virtualPath, _physicalPath, _installPath); }[/CODE] I had a look through the source of the playlist manager and it looks no different to what I am trying to do. Any tips cause I am out of my league here? I agree Sam that WCF is looking like it may be the easiest and trouble free way to implement this. On another note in regards to the appdomain issue and how jlewalle got around it in the playlist manager plugin, is this the best way to do it or would another layer possibly remoting in MP be better as it did not seem to flexible for change from the code I looked at, however as I said I am out of my league here. Cheers for the rant, Chad [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
New Webinterface
Contact us
RSS
Top
Bottom