Visual Studio 2013 website refresh / restart ignores code changes

When I have a website in VS2013 (either a web application or a web type project) and I make changes to the code, such as a JS change or an HTML change, this change is not reflected in the browser after the update. The following are the things that I tried that didn't work:

  • Clearing the browser cache / restarting the browser
  • Disabling VS debugging and restarting the project
  • Clean VS solution, rebuild and restart
  • Clean VS solution, close VS and completely restart VS
  • Refresh link in browser

The only way to force my code changes to take effect (JS or html) is to either manually exit IISExpress / VS or restart the computer.

Without being too dramatic, this is unacceptable. How to fix it?

Thank.

+4
source share
2 answers

I also ran into the same problem and it seems to come from files C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET.

If you delete these files and reload the page, everything will work. I'm still not sure why Visual Studio is not updating these files.

+4
source

I recently ran into this problem and it seemed that IIS Express was working with an older branch of my code, even if I started a new branch. Try closing Visual Studio and reopening the project.

0
source

All Articles