How do I set up my IIS to keep my application alive?

IIS has a feature in properties where you can stop recycle your IIS on intervals

  1. Go to your "IIS Manager"
  2. Select "Application Pool" the instance you want to manage.
  3. Select "Advanced settings" action
  4. Under "Recycling" and set "Regular Time Interval" to 0, which means the application pool does not recycle.

  1. Open "IIS Manager"
  2. Select "Application Pool" the instance you want to manage
  3. Select "Advanced settings"
  4. Under "(General)" and set "Start Mode" to "AlwaysRunning", which means the application pool keep the ASP.NET application run always

PS. If you want the ASP.NET application be loaded automatically, you can follow this:

  1. Open "IIS Manager"
  2. Select the application you want to manage
  3. Select "Advanced settings"
  4. Under "(General)" and set "Preload Enabled" to "true", which means the applicaton will be loaded automatically after its deployment.

For more information, please visit this:Use IIS Application Initialization for keeping ASP.NET Apps alive

Tags:

Iis 7