A bare "The service is unavailable" page in IIS means the request never reached your app: HTTP.sys is answering because the application pool has been disabled after repeated worker crashes. The guide shows how to tell which kind of 503 you have and how to find the crash behind Rapid-Fail Protection on a VPS and on shared Plesk hosting.
Key points
- The plain HTTP.sys 503 means the pool is stopped, disabled or its queue is full, so the app never saw the request.
- Rapid-Fail Protection disables a pool after 5 w3wp.exe crashes in 5 minutes and logs WAS event 5002.
- The last HTTPERR column (AppOffline, Disabled, QueueFull, AppPoolTimer, AppShutdown) tells you which scenario you are in.
- WAS events 5009 and 5011 confirm a crash; the real exception and stack trace sit in Application log events 1026 and 1000.
- On shared hosting, set stdoutLogEnabled="true" and stdoutLogFile on the aspNetCore element in web.config to capture the console.
- A full queue is not a crash: fix thread-pool starvation from .Result, .Wait() or GetAwaiter().GetResult() by making the hot path async.
- When the pool is down, in-process health checks are down too; use an external uptime monitor that requests a real page.
Real-world use
- Diagnosing repeated 503 outages on an ASP.NET Core site on shared Plesk hosting with no Event Viewer access
- Fixing queue-full 503s on an ASP.NET Core API suffering thread-pool starvation under load
- Preventing outages caused by a deploy script that stops the app pool and never starts it again
- Catching pool crashes with an external uptime check when no in-app alert can fire
This summary was generated by the agent from the original post on DEV Community: #aspnetcore. The full text and all rights belong to its author and publisher. Go to original