19
votes

I'm trying to get a decent development experience with Visual Studio 2015 Preview. To do that I'd love to have my IIS Express running all the time instead of requiring me to start debugging.

Anyway to do that? Tried command line:

IISExpress.exe /path:pathmyproject/wwwroot
IISExpress.exe /site:SiteName

and

IISExpress.exe /path:pathtomyproject

First two give me:

Unable to locate project.json

Third one

HTTP Error 403.14 - Forbidden
7

7 Answers

28
votes

Not exactly an answer, but if you can view in browser instead of Debug.

The command for view in browser is: CTRL+ SHIFT + W (or right click on project and select View -> View in broswer.)

IIS Express will start but will not close when you exit your browser.

Hope this helps, this is what I do (specially now that build/compile is no required with roslyn).

21
votes

Similar to VS 2013, if you disable Edit and Continue IIS Express will continue to run when you stop your debug sessions.

Open the menu item Tools/Options, look for the Debugging/General option. Scroll down and uncheck "Enable Edit and Continue"

13
votes

in the Debug menu > Start without debugging (Ctr + F5)

9
votes

Visual Studio 2015 Update 3 adds the support to keep IIS Express Running

For ASP.NET Web Application projects, when "Enable Edit and Continue" checkbox is unchecked, the IIS Express process will no longer stop working every time you stop debugging.

Visual Studio Update 3 RC Release Notes

1
votes

"Enable Edit and Continue" checkbox does not exist in visual studio 2015 update 2!
this is best solution for this problem

0
votes

I just unchecked Edit & Continue option under project properties -> Web -> Debugger. I'm using VS2015. It is working for me.

0
votes

This problem occurred to me when trying to run a cloned project. The solution that worked to me was installing Microsoft.NET Core 1.0.1 VS 2015 Tooling Preview 2.

  1. Go to Tools --> Extensions and Updates --> click Updates
  2. Look for Microsoft.NET Core 1.0.1 VS 2015 Tooling Preview 2 and install the update if it is available.