Asp.net has an Application_End event which occurs when the application comes to end, like this
void Application_End(object sender, EventArgs e)
{
}
My question is the following: when does this event occurs in real, i.e. what kind of situations trigger it?
Suppose I have a banking web application running 24x7x365, which executes continuously & accesses from thousands of places at a time, then when would this Application_End event occur? What kinds of situations are responsible for this?
The
Application_Endevent gets fired when the IIS pool is recycled or when you make changes to the bin folder or web.config file. You should change the default IIS setting to schedule a recycle once a day on offpeak hours.