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

前端 未结 6 1471
忘掉有多难
忘掉有多难 2020-12-05 19:06

I think my Webapplication gets shut down after a while.

It returns a new session if I haven\'t used the application in maybe 5 minutes. The session timeout is set to

6条回答
  •  情书的邮戳
    2020-12-05 19:33

    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

提交回复
热议问题