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
WebService and Mobile Access
Graveyard
MPWebServices
WORKING: MPWebServices Win2008R2
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="Salty.dh" data-source="post: 640120" data-attributes="member: 19902"><p>I know a number of people were having problems with getting MPWebServices to work under Windows Server 2008 R2. Specifically receiving the following error: "MPWebServices: Exception raised while trying to start webserver. Could not load file or assembly 'MiniWebServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."</p><p></p><p>Here's what I did to get it working, I did notice a post by Gemx about stability issues (<a href="https://forum.team-mediaportal.com/mpwebservices-463/solving-webserver-crashes-81804/" target="_blank">https://forum.team-mediaportal.com/mpwebservices-463/solving-webserver-crashes-81804/</a>), I only just got this working on R2 so time will tell?</p><p></p><p></p><p>Step 1:</p><p></p><p>Open the web.config file for the MPWebServices (C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Web.config)</p><p></p><p>Step 2:</p><p></p><p>Scroll to the very bottom and you'll see the configuration\runtime node. Comment out that entire node.</p><p></p><p><!--</p><p><runtime></p><p> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"></p><p> <dependentAssembly></p><p> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/></p><p> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></p><p> <dependentAssembly></p><p> <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/></p><p> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></p><p> </assemblyBinding></p><p></runtime></p><p>--></p><p></configuration></p><p></p><p></p><p>Specifically, we need to turn off the assembly bindings. I think the assembly resolution problem is caused by multiple app domains in the process and each domain has different bindings. AppDomain 1 would have default bindings and the Web App AppDomain has System.Web.Extensions redirected. This is confusing the assembly resolver - its not even scanning the current path for this assembly as far as I can see!</p><p></p><p>Step 3:</p><p></p><p>At this point, restart your TvService windows service. Open a browser and browse to your designated WebService URL (locahost:8080). You may get a nice yellow screen of death about NT Authority\System not having access to the ASP.NET Temporary Files directory.</p><p></p><p>Step 4: (Optional dependent on current system config)</p><p></p><p>I had to manually create this folder, it didn't exist: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files</p><p></p><p>Set the SYSTEM account to have at least Modify Access (I used full control). Security minded people will change the TvService account to a service account and secure that way.</p><p></p><p>Step 5:</p><p></p><p>Restart the TvService again.</p><p></p><p>At this point everything should start up OR, if you're running RC6 like I am, some of the assemblies will be out of date in the htdocs\bin directory.</p><p></p><p>Step 6: (Not required depending on Mediaportal version)</p><p></p><p>Take the following assemblies from the root MediaPortal TV Server folder: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server</p><p></p><p>- Gentle.Common.dll</p><p>- Gentle.Framework.dll</p><p>- Gentle.Provider.MySQL.dll</p><p>- Gentle.Provider.SQLServer.dll</p><p></p><p>- MySql.Data.dll</p><p></p><p>- TvControl.dll</p><p>- TVDatabase.dll</p><p>- TvLibrary.Interfaces.dll</p><p></p><p>Replace the assemblies in C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin</p><p></p><p>Step 7:</p><p></p><p>Enjoy MPWebServices again!</p><p></p><p></p><p>Hope that helps the few others who had this problem. I finally have my broadcasting server up and running on my 2008R2 box so I'm very happy.</p><p></p><p>Cheers,</p><p></p><p>Salty.</p></blockquote><p></p>
[QUOTE="Salty.dh, post: 640120, member: 19902"] I know a number of people were having problems with getting MPWebServices to work under Windows Server 2008 R2. Specifically receiving the following error: "MPWebServices: Exception raised while trying to start webserver. Could not load file or assembly 'MiniWebServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." Here's what I did to get it working, I did notice a post by Gemx about stability issues ([url]https://forum.team-mediaportal.com/mpwebservices-463/solving-webserver-crashes-81804/[/url]), I only just got this working on R2 so time will tell? Step 1: Open the web.config file for the MPWebServices (C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Web.config) Step 2: Scroll to the very bottom and you'll see the configuration\runtime node. Comment out that entire node. <!-- <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly> </assemblyBinding> </runtime> --> </configuration> Specifically, we need to turn off the assembly bindings. I think the assembly resolution problem is caused by multiple app domains in the process and each domain has different bindings. AppDomain 1 would have default bindings and the Web App AppDomain has System.Web.Extensions redirected. This is confusing the assembly resolver - its not even scanning the current path for this assembly as far as I can see! Step 3: At this point, restart your TvService windows service. Open a browser and browse to your designated WebService URL (locahost:8080). You may get a nice yellow screen of death about NT Authority\System not having access to the ASP.NET Temporary Files directory. Step 4: (Optional dependent on current system config) I had to manually create this folder, it didn't exist: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files Set the SYSTEM account to have at least Modify Access (I used full control). Security minded people will change the TvService account to a service account and secure that way. Step 5: Restart the TvService again. At this point everything should start up OR, if you're running RC6 like I am, some of the assemblies will be out of date in the htdocs\bin directory. Step 6: (Not required depending on Mediaportal version) Take the following assemblies from the root MediaPortal TV Server folder: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server - Gentle.Common.dll - Gentle.Framework.dll - Gentle.Provider.MySQL.dll - Gentle.Provider.SQLServer.dll - MySql.Data.dll - TvControl.dll - TVDatabase.dll - TvLibrary.Interfaces.dll Replace the assemblies in C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin Step 7: Enjoy MPWebServices again! Hope that helps the few others who had this problem. I finally have my broadcasting server up and running on my 2008R2 box so I'm very happy. Cheers, Salty. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Graveyard
MPWebServices
WORKING: MPWebServices Win2008R2
Contact us
RSS
Top
Bottom