Problem:
The Kestrel server shuts down very often on my Asp.Net Core2 application
https://Readdy.Net and then completes the complete activity for all clients.
settings:
I have already made a lot of settings under the IIS application pools, but no setting has led to a solution.
Most of all, if I had share share on Facebook, and then came back and quickly went back to the main page, then the asp core server crashed completely.
In the log file you will always find several failures and the application is no longer active. I suspect that this application or application pool was then shut down as a Worker Process shutdown or even terminated as Terminate.
What to try
One must seemingly insert in the file: program.csa the line UseIISIntegration ()
Actually, I have previously assumed that the IIS Information Server from Microsoft takes over as the default information.
IIS improvement
program.cs
namespace Readdy { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); }
public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>() .UseIISIntegration() //*old Core1 ..2? .Build(); } } |
Current IIS Application Pool Settings for Core 2
Also, I have not found the best IIS application pool settings among all asp core applications. So here's my current setup:
general
.NET CLR Version: No Managed Code
Start Mode: Always Running
CPU
Limit Interval (minutes): 0
Process Model
Idle time-out (minutes): 0
Idle Time-out Action: Suspend
Rapid-Fail Protection
Enabled: False