Silverlight project does not update when Ran

I am currently developing VS2010 RC and Silverlight 4 and have run into a small problem. My project, when I ran, showed the version that I built about 4 hours ago. (I built a project using a business template). The project itself will not be updated, which means all forms and controls.

I have done the following:

  • Rebooted the computer.
  • Reboot Visual Studio
  • The deleted xap file in the ClientBin folder on the web page
  • Client Generated_Code Folder Removed
  • Remote xap file from Client side Debug folder
  • I opened the Configuration Manager solution and made sure that both my web projects and client projects were checked.
  • Every combination of various projects and solutions has been rebuilt, built and cleaned.
  • Deleted and re-added project in MTT.Web properties

Is there a known bug or something else that I can try?

+4
source share
1 answer

A few things you can try:

1) Clear your cached / temporary internet files in your browser.

2) Make each XAP URL unique to prevent client side caching. One method using the Page class in ASP.NET:

<param name="source" value="<%=ResolveClientUrl("~/ClientBin/YourApp.xap?x=" + (new Random()).Next(1000000)) %>" /> 

For more information, see Avoid Incorrect Caching of Silverlight XAP Files

3) Do you use a proxy server? Is there proxy caching? The above method should prevent proxy caching.

+3
source

Source: https://habr.com/ru/post/1306518/


All Articles