Caching in asp.net development server

More: I am using Visual Studio 2005 on windows xp sp3. The website is stored in the file system. I used subversion to check the code from the server.

Here is the problem: When I launch the application for the first time, everything is in order. But when I make changes to the application, I should just see these changes by reloading the page in the browser. But this does not happen. I have to stop the development server and restart the application, which will launch a new instance of the development server, and now I see the changes. It takes 3-4 minutes, and it is a waste of time that I can not afford.

For my fellow developer, who has been here for a long time, everything works fine. It can simply change the page and reload the page in the browser to see the changes.

Reading some forums on the Internet, I tried to clear the cache of my browser (IE, Firefox) and it does not work. Thus, this is not a problem with the browser cache. This is due to the cache in the development server.

Any ideas are welcome.

+4
caching
source share
2 answers

Thanks for helping the guys. It was my fault. I still turned off the directory repository the day before yesterday because it did not allow me to build a website. I just found this solution in some forum. I had no idea what it was at that time, I was just happy that it worked.

This is the link: http://support.microsoft.com/kb/911272

I set the value 2 to the registry key HKLM \ Software \ Microsoft \ ASP.NET \ FCNMode. If I set it to 0, then the project goes into infinite build, possibly due to a slow machine. A value of 2 works for me.

+5
source share

Are you building the code? these are code changes (.aspx.cs or .aspx.vb) or front-page code (.aspx)

For code changes If you separate the debugger (click the blue stop square button) and rebuild, then yes, you should be able to ctrl-f5 (hard update) your browser and see the changes. To change the code at the beginning, after saving, a browser update should be enough.

0
source share

All Articles