Hi
There are many reasons why the Web Application restarts in Asp.net 2.0. If you are using IN Proc (which is the fastest and most used) then all the users will loose the session information. So it’s very important to know what can cause an application restart in the web application. If we do not stop this application restart process it can cause great problem, as all the user will start loosing their session in the middle of nothing.
Here is a list of events when the Asp.net application restarts in Asp.Net 2.0
- Adding, modifying, or deleting assemblies from the application's Bin folder.
- Adding, modifying, or deleting localization resources from the App_GlobalResources or App_LocalResources folders.
- Adding, modifying, or deleting the application's Global.asax file.
- Adding, modifying, or deleting source code files in the App_Code directory.
- Adding, modifying, or deleting Profile configuration.
- Adding, modifying, or deleting Web service references in the App_WebReferences directory.
- Adding, modifying, or deleting the application's Web.config file.