10

I've tried this answer posted for Visual Studio 2013.

How can I prevent Visual Studio 2013 from closing my IIS Express app when I end debugging?

In Visual Studio 2015, it is bit different and didn't work for me.

How can I prevent closing Visual Studio 2015 IIS express app when I end the debug?

Community
  • 1
  • 1
Mahesh
  • 2,731
  • 2
  • 32
  • 31

3 Answers3

6

enter image description hereDoes right click on the "project -> view -> view in browser" work for you needs? It starts iis express and keeps it running.

thllbrg
  • 2,017
  • 17
  • 21
  • Thanks for your response. i don't see Project->view-> view in browser it has only project->view->view class diagram – Mahesh Jul 29 '15 at 23:24
  • @Mahesh I updated my answer with an image where "View in Browser" suppose to be. – thllbrg Jul 30 '15 at 06:17
  • 2
    Unfortunately, this still causes a headache where, if you start a regular F5 debug again, then stop it, you then have to to CTRL+F5 again. In 2013, I could start and stop a debug session and it would keep the IIS instance running. I still can't find answer for this change in 2015 to make it behave like 2013. – Ryan Peters Mar 31 '16 at 12:39
  • This is one of those things that worked better in VS2013 and now is a complete mess... Unless of course there is something that we are all unaware of... – Marko Apr 04 '16 at 13:16
4

In VS 2015, go to Debug menu select Start Without Debugging. It will run the web application without debugging. You can now make changes and rebuild project, then refresh your browser to see changes.

Wei
  • 724
  • 9
  • 10
1

Okay here's what I do and it works in both VS 2015 and VS 2017.

  1. In the Solution Explorer, right click on the project
  2. Go to Properties, then top the Web tab
  3. In the Debuggers section, make sure "Enable Edit and Continue" is unchecked.

Start debug section, stop debug, and you should see that IIS Express server continues, i.e. does not get annoyingly shut down.

Thomas Fritsch
  • 9,639
  • 33
  • 37
  • 49
Mark Dalsaso
  • 213
  • 4
  • 8