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_End
event 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.
It will be fired in one of those situations:
IIS pool is restarted.
Web.config changes.
Application is restarted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With