My setup is a standard Windows 7, Visual studio 2008 and IIS 7.5 and I suffer from unwanted caching of usercontrols and masterpage files. Often but not always when I make changes in a usercontrol in Visual studio I have to reset the IIS to be able to see the changes I made in the HTML. I have also experienced this problem with IIS 6 and Windows server 2003. Anyone have a solution for this problem?
A:
How can you be sure that IIS is not picking up the new files, and that it isn't just your browser that is doing the caching?
slugster
2009-11-15 10:08:07
I'm forcing my browser to request the latest version of all files.
Marcus
2009-11-15 10:22:59
A:
In my experience the controls are recompiled when you update the .ascx
file, but not when you update the .cs
file.
In case your code is compiled into DLLs, it will not be updated until you recycle the IIS - you don't have to reset is (which takes all sites down), you can recycle your site's application pool.
Kobi
2009-11-15 10:13:37