Answer the question
In order to leave comments, you need to log in
Application_end event
There is a service on ASP.NET, you need to do the following, before restarting the server or "recycling" the application, you need to dump the data into the database. Accordingly, I'm in the application_end event handler, doing this work, but as far as I remember (maybe I'm wrong), application_end has a certain timeout, that is, if the code in the application_end handler did not have time to execute, then the application will be forcibly terminated without waiting for the completion of the code in application_end. But somehow I could not find confirmation of this, I would be grateful if someone explains whether there is a timeout, and if so, which one, and where it can be changed. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Yes, there is a timeout: ApplicationPools > Pool > Advanced Settings > Shutdown Time Limit
When a process exceeds the available shutdown time limit, the process is killed, this is also visible later in the logs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question