Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an 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?


share|improve this question
up vote 3 down vote accepted

In IIS 7, you had to set the idletimeout for the apppool to "0", I would guess it's something similar for IIS 8. Details here.

share|improve this answer
Thanks that fixed it. I went through all the Advanced Settings in the App Pool and I can't believe I missed that. – Lambo Jayapalan Oct 28 '12 at 20:55

I believe the AlwaysRunning option under Start Mode for the AppPool will accomplish the same thing.

Don't even think you need the appfabric on IIS8.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.