This project is read-only.

Video player works locally but invisible on host


Following code works locally:
<div id="silverlightControlHost"> <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="620" height="414"> <param name="source" value="VideoPlayer.xap"/> <param name="background" value="white" /> <param name="initParams" value="m=" /> <param name="minruntimeversion" value="2.0.31005.0" /> <a href="" style="text-decoration: none;"> <img src="" alt="Get Microsoft Silverlight" style="border-style: none"/> </a> </object> </div>  
But will not run on test page at hosted site (
I've experimented with source location for VideoPlayer.xap and have copy in root as well as ClientBin folder. I've also tried value="ClientBin\VideoPlayer.xap" and "\ClientBin\VideoPlayer.xap".
Again these values work locally but not on online in host site.
Host (webhotel aka inforce) confirms they have Silverlight vers. 3, I have vers. 4 locally. However min runtime vers is 2.0.31005.0, so presumably this is not problem.
I get a blank screen area online where video should be like host can't find VideoPlayer.xap.
Are there any other files I need to upload to get player working? Or perhaps settings to be changed online?
Have spent some time trying to get working online so would appreciate any help.


tron wrote Aug 2, 2010 at 7:35 PM

Had same issue. Make sure the Mime type is set on the server for silverlight templates.

Mime Type settings:
The extension is ".xap" and mime type is "application/x-silverlight-app"

wrote Feb 22, 2013 at 12:31 AM