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
- Go to your "IIS Manager"
- Select "Application Pool" the instance you want to manage.
- Select "Advanced settings" action
- Under "Recycling" and set "Regular Time Interval" to 0, which means the application pool does not recycle.
- Open "IIS Manager"
- Select "Application Pool" the instance you want to manage
- Select "Advanced settings"
- 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:
- Open "IIS Manager"
- Select the application you want to manage
- Select "Advanced settings"
- 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