Kamsiinov
Kamsiinov

Reputation: 1490

IIS shutsdown website even though timeout for app pool is set to 0

Title pretty much says it all. I have created a simple ASP.NET core 3.1 website which runs a MQTT subscriper. My problem is that after a while I see message in event viewer:

Application 'MACHINE/WEBROOT/APPHOST/MYWEBSITE' has shutdown.

enter image description here

Is there something I should add in the website itself or in IIS to make the website always running?

Upvotes: 1

Views: 9688

Answers (2)

Rehana Atashi
Rehana Atashi

Reputation: 21

I had same problem before and solved with set Rapid-Fail protection to false. If you trust to your server performance or increase failure and maximum failures count.

Upvotes: 2

Kamsiinov
Kamsiinov

Reputation: 1490

I found a complete step to step guide how to fix this from: https://www.taithienbo.com/how-to-auto-start-and-keep-an-asp-net-core-web-application-and-keep-it-running-on-iis/

The missing part from my config was to add application initialization to server roles.

Upvotes: 5

Related Questions