While debugging ASP.net core web app in visual studio, after hitting a breakpoint (anywhere for ex. in Startup.cs), after about 5 minutes, IISExpress process terminates and debugger stops. The only error message related to this, I could see is in event viewer:
IISExpress 10 Visual studio 2022 Professional
Application ‘/LM/W3SVC/2/ROOT’ with physical root ‘C:\Users\XXXX\OneDrive - XXXXXX\Documents\XXXXX\apps\YarpTest\WebApi’ failed to load coreclr. Exception message: Managed server didn’t initialize after 4294967295 ms.
Tried out pretty much all the suggestions available in online forums without much luck (like turning off enable edit and continue in settings, turning on, enable just my code in tools -> options->Debugging -> General, deleting .vs folder etc)
Appreciate your suggestions in getting this IISExpress debug issue resolved.
You can try using the
Detach allmenu item in theDebugmenu,It detached the debugger from the processes being debugged, but does not kill the processes in the progress.This method is mentioned in this thread, you can check it out and try it:
IIS Express Immediately shutting-down running site after stopping web application