When exactly is Application_End called and how can I manually call this?

I know that the event handler for this event is called when the application pool is processed by IIS, but when does this happen? How about using the integrated Visual Studio Server (Cassini)? If I kill the server process, will Application_End be launched?

UPDATE: I am aware of changes to the web.config and BIN folders. I am interested in the case of closing the pool after the application has been idle for some time without touching anything.

+6
iis cassini
source share
2 answers

As Nick said : "The application pool will be processed when ... some processing restrictions fall into the application pool configuration." In IIS, you can set the recirculation conditions in the application pool settings. You can use fixed intervals (every X minutes or requests), a specific time of day or maximum values ​​based on memory in MB (maximum virtual memory or max. Private memory) or a combination of any of them. You can also set the idle timeout in minutes after which the workflow ends.

IIS reinstallation options http://i41.tinypic.com/2j13k1v.png

Advanced IIS Settings http://i42.tinypic.com/s2gz6t.png

+7
source share

The application pool will be processed when the web.config or / bin directory changes, or some restrictions on recycling fall into the configuration of the application pool. The same is true for Cassini, except that it does not have an application pool, so it will start at any time when the web.config or / bin directory changes. I'm not sure about killing a Cassini instance.

+5
source share

All Articles