Hosting Silverlight Video Player in IIS 7 Release

I am trying to host an ASP.NET application that is running Silverlight Video Player . I recently deployed this application to a new Windows Server 2008 virtual PC. I installed the Silverlight plugin as well as the Silverlight 2 SDK on the server (and .NET Framework 3.5 SP1).

When I try to go to this site, the video player should download and show me the video. However, the behavior I see is that the "block" of spaces is laid out, but I can't see the video or player loading. On a standalone Vista machine, the application runs when hosted in Visual Studio IIS Server "Cassini". The application is built in .NET 3.5 SP1.

Does anyone have any ideas as to why the Silverlight player isn't working? The download content is included in the project and refers to the "~ /" syntax.

0


a source to share


2 answers


Did you know that the Silverlight plugin loads your application? (Can you put a breakpoint in App.xaml.cs: Application_Startup?)

If not, have you checked that your IIS server has a mime type for XAP files?

The minimum requirements for hosting a Silverlight application are:



  • Any web server
  • The Mime type is set for XAP files.

Some issues to consider when troubleshooting this issue:

  • Is the XAP file available to the client?
  • Can you right click on the "space block" and get the Silverlight menu?
  • Do you see the XAP file being sent through the server? (Try fiddler or firebug to see traffic)
  • If the Silverlight application does hit the client, you should try attaching a debugger. Attach your debugger to your browser and you can debug your Silverlight application to understand it.
+1


a source


The problem was caused by the fact that I was deploying the site in the "Application Catalog" to the default website on Windows Server 2008. Therefore, the relative link to the .XAP file was not resolved correctly. I fixed the issue by expanding the website to the root of the default website, which works fine for me.



Going through Brian's suggestions helped a lot in solving this: 1. Can you right click on the "space block" and get the Silverlight menu? In my case, I could. 2. Is the XAP file being received for the client? You can check the temporary Internet files from the client machine to see if it is downloading. Mine was not at that moment.

0


a source







All Articles