title: Silverlight: how to force browser to download updated client version?
body: <p>My Silverlight (4.0) app (hosted by ASP.NET website) uses 4 projects, they all use one file with assembly version:</p>
  
  <pre><code>[assembly: AssemblyVersion("1.0.*")]
  </code></pre>
  
  <p>The version of currently displayed application is 1.0.3842.38865, but the newer one (1.0.3854.42448) is uploaded to server recently.</p>
  
  <p>The problem is that browser doesn't load new Silverlight application after it's deployment to server.</p>
  
  <p>Here is a HTML-code that is used for "rendering" of silverlight-html-loader (not sure if it a correct name):</p>
  
  <pre><code>&lt;div id="silverlightControlHost" style="height:950px"&gt; 
  &lt;object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"&gt; 
    &lt;param name="source" value="/ClientBin/VfmElitaSilverlightClientApplication.xap"/&gt; 
    &lt;param name="onError" value="onSilverlightError" /&gt; 
    &lt;param name="background" value="white" /&gt; 
    &lt;param name="initParams" value="adr=squad,team=811,match=3217203" /&gt; 
    &lt;param name="minRuntimeVersion" value="3.0.40624.0" /&gt; 
    &lt;param name="autoUpgrade" value="true" /&gt; 
    &lt;a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40624.0" style="text-decoration:none"&gt; 
        &lt;img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/&gt; 
    &lt;/a&gt; 
  &lt;/object&gt; 
  &lt;iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"&gt;&lt;/iframe&gt; 
  </code></pre>
  
  <p> </p>
  
  <p>I've tried to add a parameter to the "source" parameter of the object that contains time of last XAP-file modification:</p>
  
  <pre><code>  &lt;param name="source" value="/ClientBin/VfmElitaSilverlightClientApplication.xap?Ver=2010072243523AM"/&gt;
  </code></pre>
  
  <p>That caused an error of Silverlight application loading:</p>
  
  <blockquote>
    <p>Unhandled Error in Silverlight
    Application  Code: 2103     Category:
    InitializeError        Message:
    Invalid or malformed application:
    Check manifest</p>
  </blockquote>
  
  <p>Could you please advise how to force browser to get new application from server (without  browser cache manipulating, I would like to keep browser caching option)?</p>
  
  <p>Thank you very much!</p>
  
  <p>P.S. It is necessary to add that silverlight application works (uploaded and launched) fine  on my localhost without any dancing with parameters. Only when I upload it to web site - it is not reloaded by browser. And adding additional parameters to the xap-file path - doesn't work on localhost.</p>