I’ve been working on debugging the existing web applications my new company has developed. I had everything set up, with the appropriate web applications created and breakpoints set, but after about 90 seconds Visual Studio would return to its non-debugging state.
It turns out that as of IIS6 (I’m using IIS 7 on Windows 7), IIS now pings worker processes to make sure it is still responsive, and if not the worker process is terminated. There is a setting, however, to control this on the app pool.
- Select the app pool for your application. This is one of the reasons why specifying a separate app pool for each web application is a good idea.
- Bring up Advanced Settings.
- Scroll down to the Process Model section.
- Change the value of the Ping Enabled setting to False. Alternately you could change the Ping Maximum Response Time (seconds) setting to a higher value, but you’ll be limited in the amount of time you have to debug, so I don’t recommend that.
JohanS has a couple of really good articles on this, which go into more detail.
Resources
- My web application times out when debugging in IIS7 by JohanS @ MSDN Blogs
- I’ve upgraded and now my application doesn’t work anymore by JohanS @ MSDN Blogs