My Silverlight (4.0) application (hosted on the ASP.NET website) uses 4 projects, all of them use the same assembly file:
[assembly: AssemblyVersion("1.0.*")]
The version of the currently displayed application is 1.0.3842.38865, but a new one (1.0.3854.42448) has been uploaded to the server recently.
The problem is that the browser does not load the new Silverlight application after it is deployed to the server.
Here is the HTML that is used to render silverlight-html-loader (not sure if this is the correct name):
<div id="silverlightControlHost" style="height:950px"> <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="source" value="/ClientBin/VfmElitaSilverlightClientApplication.xap"/> <param name="onError" value="onSilverlightError" /> <param name="background" value="white" /> <param name="initParams" value="adr=squad,team=811,match=3217203" /> <param name="minRuntimeVersion" value="3.0.40624.0" /> <param name="autoUpgrade" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/> </a> </object> <iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
I tried to add a parameter to the "initial" parameter of the object, which contains the time of the last modification of the XAP file:
<param name="source" value="/ClientBin/VfmElitaSilverlightClientApplication.xap?Ver=2010072243523AM"/>
This caused an error loading the Silverlight application:
Silverlight Unhandled Error Application Code: 2103 Category: InitializeError Message: Invalid or Invalid Application: Verify Manifest
Could you please advise how to make the browser receive a new application from the server (without manipulating the browser cache, I would like to save the browser cache setting)?
Many thanks!
PS It is necessary to add that the silverlight application works (downloaded and launched) perfectly on my local host without any dances with parameters. Only when I upload it to the website does it not restart with the browser. And adding additional parameters to the path to the xap file does not work on localhost.
Budda
source share