IIS Express not stopping when debug session ends

Joel picture Joel · Jan 5, 2018 · Viewed 7.1k times · Source

All of a sudden IIS Express no longer stops when I stop debugging a web site in Visual Studio 2017.

I'm not sure when this behaviour started, but I have the following setup:

  • Visual Studio 15.5.2 (Has been repaired)
  • IIS Express 10.0 x64 (Reinstalled)
  • An ASP.Net Core 2 project targeting net461
  • I have disabled "Enable edit and continue" in Tools -> Options -> Debugging -> General

Not sure when this started happedning, maybe when I updated to the lastest VS version.

What more can I try?

Answer

RAM picture RAM · Jan 25, 2018

If Enable Edit and Continue is unchecked Then IIS Express stays running even after debugging is stopped.

You can uncheck it if you want here:

Right click your project » click Properties » select the Web tab » Enable Edit and Continue checkbox enter image description here