Why is it Restarting?
If you see that you are experiencing restarts, the next question to ask is why? When folks work with .NET web apps, they often learn the hard way that their app is restarting more often in a day than they'd expect. The reasons it can happen are even more surprising.
Among the reasons it can/will restart (or technically, unload itself) is if:
* the web.config is edited * the machine.config is edited * the global.asax is edited * files are changed in the bin directory of the web app, or one of the bin's subdirectories * a directory is created, renamed, or deleted within a web app directory * an ASP.NET file (aspx, asmx, etc.) is edited (and therefore recompiled) more than 20 times, a default set in the machine config as an element named numRecompilesBeforeApprestart * by way of settings of various attributes in the <processModel> element in the machine.config, which affect the restart/shutdown of the worker process itself. On Windows 2003, when not using IIS5 isolation mode (which is not used by default), these <processModel> elements are ignored and instead the settings in Application Pools in IIS manager are used |