How do I prevent IIS 8 from stopping idle ASP.NET applications?

Posted by Lambo Jayapalan on Server Fault See other posts from Server Fault or by Lambo Jayapalan
Published on 2012-10-28T00:33:45Z Indexed on 2012/10/28 5:05 UTC
Read the original article Hit count: 383

Filed under:
|

I have an asp.net application running on Windows 2012 in IIS 8 that has a very time consuming application start process (essentially the code running in the Application_Start() event can take up to 2 minutes). Thus I'd like to minimize the number of times the application is started so that the user can avoid a long wait.

I've enabled Preload in the application settings, and I've set the Start Mode to AlwaysRunning in the application pool. Yet the application still ends after not being used for a while, resulting in a very long time for the first visit to the website after the application shuts down.

Does anyone have any ideas on how I can prevent this?

Thanks

© Server Fault or respective owner

Related posts about iis

Related posts about ASP.NET