Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I suspect this has something to do with the builtin Cassini / Visual Studio Development server and SL5 not playing nicely together for some reason. </p> <p>I'm also using the anti-cache trick you mentioned and I was experiencing the same behavior of <strong>Application.Current.InstallState</strong> always reporting <strong>NotInstalled</strong> as well as <strong>CheckAndDownloadUpdateAsync()</strong> always reporting <strong>e.UpdateAvailable = true</strong>.</p> <p>So I changed my web project configuration to use <strong>IIS Express</strong> instead of the the builtin Visual Studio Development server and re-installed the Silverlight app to the desktop. Finally, everything started working as expected. In order words <strong>Application.Current.InstallState = Installed</strong> and <strong>CheckAndDownloadUpdateAsync()</strong> is reporting <strong>e.UpdatedAvailable = false</strong>.</p> <p><strong>Update</strong>:</p> <p>Sorry, didn't see that you're experiencing this as well on live IIS deployments.</p> <p><strong>Update 2</strong>:</p> <p>My anti-cache HTML as requested:</p> <pre><code>&lt;div id="silverlightControlHost" align="center" style="height:100%"&gt; &lt;object data="data:application/x-silverlight-2," type="application/x-silverlight2" width="100%" height="100%"&gt; &lt;% string source = @"~/ClientBin/EskomVDT.SL.xap"; string param; if(System.Diagnostics.Debugger.IsAttached) { param = "&lt;param name=\"source\" value=\"" + VirtualPathUtility.ToAbsolute(source) + "\" /&gt;"; } else { string xapPath = HttpContext.Current.Server.MapPath(source); DateTime xapCreationDate = System.IO.File.GetLastWriteTime(xapPath); param = "&lt;param name=\"source\" value=\"" + VirtualPathUtility.ToAbsolute(source) + "?ignore=" + xapCreationDate.ToString("yyyy-MM-dd-hh-mm-ss") + "\" /&gt;"; } Response.Write(param); %&gt; &lt;param name="onError" value="onSilverlightError" /&gt; &lt;param name="background" value="white" /&gt; &lt;param name="minRuntimeVersion" value="5.0.61118.0" /&gt; &lt;param name="autoUpgrade" value="true" /&gt; &lt;a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=5.0.61118.0" style="text-decoration:none"&gt; &lt;img src="http://go.microsoft.com/fwlink/?LinkId=161376" 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; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload