在安装Visual Studio 2017之后,我尝试运行.NET Core Web项目,当试图在Chrome上运行时,我遇到这个错误:
无法启动程序,在当前状态下操作不合法
After fresh installation of Visual Studio 2017 I tried to run .NET Core Web project and when trying to run it on Chrome I am getting this error:
Unable to start program, An operation is not legal in the current state
最满意答案
对于我来说,解决方案(解决方法)是关闭Chrome上的JavaScript调试,我相信这是VS 2017中引入的一个新功能。
转到“ 工具”>“选项”>“调试”>“常规” ,关闭“ 启用JavaScript调试”(Chrome和IE)的设置 。
这是一个已知的问题, 似乎正在进行调查 。
有关JS 2017中JS调试的完整信息,请访问https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/
For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017.
Go to Tools > Options > Debugging > General and turn off the setting for Enable JavaScript Debugging for ASP.NET (Chrome and IE).
This is a known issue already, and seems to have an investigation underway.
Full information about JS debugging in VS 2017 here: https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/
更多推荐
发布评论