ASP.NET Core 6 site work with kestrel not with IIS or IIS Express (503)

Viewed 574

I'm working on an ASP.NET Core 6 site and I usually use kestrel to run and debug the application. Today I've deployed the app to IIS but after one or two requests IIS stop responding and only return

HTTP Error 503.0 - Server has been shutdown

Same behaviour with IIS Express. Everything works fine with kestrel. I don't know how to debug the problem, I've attached the debug but with no luck. I've also looked at stdout log but nothing appears.

Does anybody have any suggestions on how to debug the issue ?

1 Answers

Please follow my step to collect the dump files. And if want analyze the dump files you can create a new post and ask for help. This answer just tell you how to debug issue.


First Way

Remote debug with visual studio 2022

  1. Deploy your app to IIS.
  2. Run your VS2022 with administrator and attach the process.
  3. Reproduce the issue to check the issue.

Second Way:

Collect dump files

If the first method can't reproduce or debug the issue. You can follow below steps to collect the dump.

  1. Download and install Debug Diagnostic Tool v2 Update 3.1
  2. Deploy your webapp in IIS
  3. Set rules to collect dumps by using DebugDiag or Collect dumps manually
Related