Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015: Debug session does not terminate properly

I've recently picked back up a year old MVC5/WebAPI2 (and SignalR) application which ran just fine under VS2013.

In VS2015 I however keep struggling with what appears to be hanging debug sessions: When starting a debug session VS2015 hangs on "Build succeeded" with no output in the console. The solution is to terminate the IIS Worker Process (which appear locked at 20-30% CPU Usage) via the Task Manager. Upon doing that VS throws a general error message and stops. When retrying once again it works normally until next stop-then-start.

It makes no difference if I stop (Shift+F5) the debug session or restart (Ctrl+Shift+F5) it, either appears to lock up the IIS process. What however does work is going to Debug -> Terminate All, then the debug session starts without hick-up.

I have tried disabling pretty much all debug tools (including Edit-and-Contiune), but nothing has worked so far. I should also mention that running the application on IIS Express does not work at all: It hangs during startup no matter what.

Update: Attaching the error message that pops up if I let the debug startup process time out. I have of course tried all the suggested solutions which the "help" button takes me to.

enter image description here

Update II: It looks like the problem might be related to SignalR. I've been working without problem for the last hour or so, but now stepped into the part of the application which uses SignalR. After stopping and changing some code, the debug session would not start again.

like image 763
Index Avatar asked Sep 24 '15 13:09

Index


1 Answers

Ensure that you turn on ‘Internet Information Services Hostable Web Core’ along with all the other .NET / IIS feautes

Try to Change the IIS Settings Shown in this Article

like image 125
Tummala Krishna Kishore Avatar answered Oct 05 '22 07:10

Tummala Krishna Kishore