ChasetopherB
ChasetopherB

Reputation: 464

My web application continues to run after stopping the debugger.

I am running visual studio 2017 community version 15.7.6.

I am running an asp.net web application in debug mode. When I hit the "Stop" button to stop the debugger, it continues to run the program. I have to close Visual Studio completely to get the program to close.

Things I have tried:

Tools -> Options -> Projects and Solutions -> Web Projects -> Stop debugger when browser window is closed is checked.

Enable Edit and Continue under in the .csproj is checked.

I have closed IIS Express in the System Tray.

Running my application using the Visual Studio 2013 debugger produces the correct behavior, so this issue is just with the VS 2017 debugger.

Nothing works in VS 2017 except closing visual studio completely.

Does anyone know what is going on?

Upvotes: 4

Views: 1767

Answers (2)

Flydog57
Flydog57

Reputation: 7111

Right-click the IIS Express icon in the Notification Area (aka System Tray), then, under "View Site", hover over your web application. In the fly-out menu, choose "Stop Site". That usually works for me.

Upvotes: 1

Caleb Johnson
Caleb Johnson

Reputation: 410

As far as I know, Visual Studio just does this sometimes and there's not anything you can do about it. If it's happening consistently I would try reinstalling and/or reverting to older versions to see if the issue persists.

Upvotes: 0

Related Questions