S
S
skyboy2013-11-04 20:51:40
IIS
skyboy, 2013-11-04 20:51:40

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

1 answer(s)
A
Alexander Keith, 2013-11-05
@skyboy

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 question

Ask a Question

731 491 924 answers to any question