Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After installing VS2015 Update 2 I can no longer view website unless I go in debug mode

Previously when I start website in debug mode and then stop debug mode website would still be visible if I visit like URL (like http://localhost:54123).

Now, I can only see ASP.NET website if I press F5 and stay in debug mode. As soon as I stop debug mode site is no longer available.

In previous versions of Visual Studio this was preventable by turning off Edit and Continue in csproj properties. But now it seems that option is no longer available. I've tried turning off Edit and Continue globally (from Tools -> Options) but this also doesn't help.

How can I configure Visual Studio 2015 Update 2 to act the same way as before update - if I start website I want it to run regardless if I attached debugger or not?

like image 460
nikib3ro Avatar asked May 16 '16 21:05

nikib3ro


1 Answers

OK, seems this is well known bug that riled up everyone. So far the best workaround is using Detach All instead of Stop when you want to shut down debugger.

Other than that upvoting bug report seems like the only option:

https://connect.microsoft.com/VisualStudio/feedback/details/2562576/edit-continue-cant-be-disabled-which-causes-iis-express-to-stop-when-the-debugger-is-stopped

But knowing Microsoft this will probably take 6-12 months to get fixed IF we are lucky.

And to those who are tempted to just uninstall Update 2 and hope Update 1 will pop-up - it won't, I just wasted 2 hours on this and my Visual Studio 2015 was completely bugged. So, complete uninstall, clean install of VS2015-Update1 will work; just Update 2 uninstall - unlikely.

like image 99
nikib3ro Avatar answered Oct 25 '22 08:10

nikib3ro