Visual Studio 2015: debugging session does not end properly

I recently put together a backup of the MVC5 / WebAPI2 (and SignalR) application for a year, which worked perfectly under VS2013.

In VS2015, however, I am struggling with what seems to hang in debugging sessions: when starting a debugging session, VS2015 hangs on "Build successed" without output to the console. The solution is to complete the IIS workflow (which is blocked when using 20-30% of the CPU) through the task manager. After that, VS issues a general error message and stops. When you restart it again, it works normally until the next stop, then start.

It doesnโ€™t matter if I stop (Shift + F5) a debugging or restarting session (Ctrl + Shift + F5), or appears to block the IIS process. What works in Debug โ†’ Terminate All, then the debugging session starts without hacking.

I tried disabling almost all debugging tools (including Edit-and-Contiune), but so far nothing has worked. It should also be mentioned that launching an application in IIS Express does not work at all: it freezes during startup no matter what.

Refresh . Attaching an error message that appears if I allow the debugging process to start. Of course, I tried all the proposed solutions, to which the help button leads me.

enter image description here

Update II . It looks like the problem may be related to SignalR. I worked without problems for the last hour or so, but now intervened in the part of the application that uses SignalR. After you stop and change any code, the debugging session does not start again.

+6
source share
2 answers

Make sure you include the "Internet Information Services Hostable Web" Core along with all other .NET / IIS features

Try changing the IIS settings shown in this Article

+2
source

I have the same problem and the solution was to set signalR performance counters.

SignalR performance counters

A similar solution question: SignalR causes IIS to hang after rebuilding

0
source

All Articles