开发者

Unwanted caching of usercontrols and masterpages forcing iisreset

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 pro开发者_如何学JAVAblem with IIS 6 and Windows server 2003. Anyone have a solution for this problem?


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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜