I'm having an issue where when I attempt to attach my debugger to IIS express, it fails with a "Unable to attach to the process. Catastrophic failure". It then kills my IIS Express session. I have no clue where to begin debugging this issue.
Steps that lead to this:
Any idea of where to go for Visual studio logs to see what might have happened? I tried running devenv.exe with the /log option but it did not help with any errors.
I also looked up IIS logs, but nothing out of the ordinary that points to the catastrophic failure.
Are you running more than one site within the same application pool? I was having the same problem and believe that separating the app sites into different application pools fixed the issue.
Additionally I had issue when the wrong start-up project was selected in Visual studio. Make sure the correct start-up project is selected before attaching, though I can't see why this should matter.
Also I created a controller for the debugger to be launched from the application, which no only makes it much easier, also appears to have less issues.
#if DEBUG
public virtual ActionResult Attach()
{
System.Diagnostics.Debugger.Launch();
return new EmptyResult();
}
#endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With