Tuesday, November 16, 2010

When ASP.NET Application Restart?

The list of situations

  1. Adding, modifying, or deleting the application's Web.config file.
    • This is very important situation here, if we are add any new section or modify existing section i web configuration file, the IIS will treat as change and then lead to restart the ASP.NET Application. And more important when Application restart all the sessions and other states will lost. so make sure before update anything in web config file, all the transaction has been completed.
  2. Adding, modifying, or deleting assemblies from the application's Bin folder.
  3. Adding, modifying, or deleting localization resources from the App_GlobalResources or App_LocalResources folders.
  4. Adding, modifying, or deleting the application's Global.asax file.
  5. Adding, modifying, or deleting source code files in the App_Code directory.
    • This is very important situation here, if we are add any new section or modify existing section i web configuration file, the IIS will treat as change and then lead to restart the ASP.NET Application. And more important when Application restart all the sessions and other states will lost. so make sure before update anything in web config file, all the transaction has been completed.
  6. Adding, modifying, or deleting Web service references in the App_WebReferences directory.
This is very smal tip, but most useful, who are working production asp.net application.