Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default MVC5 Application will not run out of debug mode in browser VS Express 2013

I have just started to develop an application in Visual Studio 2013 using MVC5. I am using the default MVC application, I have made no changes. I find that running the application works fine while in debug mode however if I Stop Debugging Shift F5 and change from on page to another or refresh my application in the browser I find that the connection to the localhost server is disconnected. I get a message Firefox can't establish a connection to the server at localhost: I have tested another application developed in Visual Studio 2012 and now running on VS2013 and it runs as expected out of debug mode. Has anybody else come across this problem. What am I doing incorrectly?

like image 979
Malawby Avatar asked Dec 19 '22 21:12

Malawby


1 Answers

Do you have Edit and Continue enabled? (This can be found under your projects Properties -> Web, at the bottom.

When you have Edit and Continue enabled, the VS debugger attaches invasively to the web server process (IIS Express). When you stop the debugger, this kills the IIS Express process as well. If E&C is turned off, the debugger does not use an invasive attach, which lets the debugger stop without killing the attached process.

like image 93
Jimmy Avatar answered May 15 '23 22:05

Jimmy