Visual Studio 2017错误:无法启动程序,操作在当前状态下不合法 [英] Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state
问题描述
全新安装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中引入的新功能.
For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017.
转到工具>选项>调试>常规,然后关闭为ASP.NET启用JavaScript调试(Chrome和IE)的设置.
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/
这篇关于Visual Studio 2017错误:无法启动程序,操作在当前状态下不合法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!