Configure IIS express on visual studioSelect the web application project and open properties -> select the web tab -> under server's select IIS express-> Specify the project URL. Now open the project folder and . vs folder (Hidden) -> Config -> applicationhost.
The default shortcut key for this behavior is Ctrl + F5. Now the server can stay up and running, and changes are automatically loaded and seen in the browser after a reload. I will only run with the debugger if I have to debug code.
Turning off the new "Enable Edit and Continue" feature fixed it for me.
Update 1:
You can also turn it off on a per project basis.
Update 2: Blog article that discusses this feature.
“Enable Edit and Continue” debugging option is now on by default for new web applications in VS2013 preview
Easier solution:
From Debug
menu select Start Without Debugging
or Ctrl+F5
to run the project, it will keep running your project unless you quit IIS.
I didn't have "Enable Edit and Continue" in my web project's properties (VS2015 Community Update 2), but finally I found a useful comment in this link which mentioned in Rick's answer:
Christian: You don't need to turn the option off for IIS express to keep running. All you need to do is instead of stopping your application, detach all processes. If you go: Tools > Customize > click the commands tab. Then select toolbar radio button and on the drop down next to this select debug. You then want to "Add Command…". On Add Command window select debug and scroll down to and click on "Detach All". Click OK and then just close. You will see a red cross next to your debug menu. When you click this after debugging your application IIS Express will continue to run.
Briefly:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With