简体   繁体   English

安装VS2015 Update 2后,除非进入调试模式,否则我无法再查看网站

[英]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 ). 以前当我以调试模式启动网站然后停止调试模式时,如果我访问URL(如http:// localhost:54123 ),网站仍然可见。

Now, I can only see ASP.NET website if I press F5 and stay in debug mode. 现在,如果按F5并保持调试模式,我只能看到ASP.NET网站。 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. 在以前版本的Visual Studio中,通过在csproj属性中关闭“编辑”和“继续”可以防止这种情况。 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? 如何配置Visual Studio 2015 Update 2以与更新前相同的方式 - 如果我启动网站,我希望它运行,无论我是否附加调试器?

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. 到目前为止,最好的解决方法是在关闭调试器时使用Detach All而不是Stop。

Other than that upvoting bug report seems like the only option: 除了upvoting错误报告似乎是唯一的选择:

https://connect.microsoft.com/VisualStudio/feedback/details/2562576/edit-continue-cant-be-disabled-which-causes-iis-express-to-stop-when-the-debugger-is-stopped 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. 但是,如果我们很幸运,那么了解微软可能需要6到12个月才能得到修复。

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. 对于那些想要卸载Update 2并希望Update 1会弹出的人 - 它不会,我只是浪费了2个小时,而我的Visual Studio 2015完全被窃听了。 So, complete uninstall, clean install of VS2015-Update1 will work; 因此,完全卸载,VS2015-Update1的干净安装将起作用; just Update 2 uninstall - unlikely. 只是更新2卸载 - 不太可能。

Visual Studio loves being a douche. Visual Studio喜欢冲洗。 These are the steps I take when it refuses to act normally.. 1. Save your work 这是我拒绝正常行动时采取的步骤.1。保存你的工作
2. From the file menu close your solution 2.从文件菜单中关闭解决方案
3. Close visual studio 3.关闭视觉工作室
4. Identify w3wp.exe or something of that nature in task mgr > Details(kill those) 4.在任务mgr> Details(杀死那些)中识别w3wp.exe或那种性质的东西
5. Go to where you deployed that app, if its default it'll be in IIS > Default Web Site > "The name of your website". 5.转到您部署该应用程序的位置,如果它的默认值将在IIS>默认网站>“您的网站名称”中。 Click Explore under options delete the app folder 单击选项下的探索删除应用程序文件夹

  1. Reopen app Clean > Rebuild > Run 重新打开应用程序清洁>重建>运行

Should play nice now 现在应该好好玩

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM