Application restarts 7 reasons that should be avoided

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.

Thanks
Vikram


Share this post   Email it |  digg it! |  reddit! |  bookmark it!

Feedback

Posted on 8/7/2007 11:18:20 PM

hello Lakhotia,
I would like to know is there any way we can delay the Application restart until all current sessions expire/are finished

Thanks
Sunil Daga

Posted on 8/8/2007 4:35:58 AM

HI,

Another reson for Restarting the Application.
i.e When AppCache is full Or So meny Nmber of requests are came at a time, then there is a possibility to Restart the Application. 

Thanks
Siva 

Posted on 8/8/2007 5:09:01 AM

HI Sunil,

WE can't delay Application Restart.

Thanks
Siva Prasad

Posted on 10/14/2008 4:51:34 AM

Another reson for Restarting the Application : Adding or deleting any directory or sub-directory.

Please post your comments:

Name:  
Email (optional): Your email address will not be posted.
URL (optional):
Comments: HTML will be ignored, URLs will be converted to hyperlinks  
Enter the text you see in the box:
 
Copyright © 2006 - 2009 Vikram Lakhotia