Asp.Net 内核的 IIS Express 在调试模式下 Chrome 中不 运行

IIS Express for Asp.Net Core Does Not Run in Chrome in Debug Mode

我一直在使用 Visual Studio 2017 社区版学习 ASP.NET Core。当我运行一个项目时,我一般会点击IDE顶部中间的IIS Express按钮。此操作在 Chrome(我的默认浏览器)中启动了一个新的 window,直到今天它运行良好。

但是,今天无法加载应用程序。浏览器显示 "Your application is starting..." 并保持该状态。最后,我关闭 window 并发现该应用程序仍在 VS 中 运行ning。我单击“停止调试”按钮,一分钟后显示以下消息:

Debugging is being stopped but is not yet complete. You can force debugging to stop immediately, but any process being detached may be terminated instead. 

This window will automatically close when the debugging has completely stopped. 

我点击了一个“立即停止”按钮。当我这样做时,诊断中心的输出是:

Cannot access a disposed object.
Object name: 'StandardClientTransportConnection'.

我有各种解决方法。我可以 运行 项目:

但我想了解我遇到的问题。我尝试了以下方法:

全部无效。

看起来 Chrome 更新中断了 Visual Studio 的调试。这个答案似乎有效:

昨天 Chrome 更新后我们遇到了同样的问题。或者如果您清理所有文件夹并且 chrome 可能会出现此问题如果您在选项中打开 Javascript 调试:

工具 --> 选项 -> 调试 -> 在 Asp.NET

中启用 Javascript 调试

然后运行正常。