Visual Studio 2017错误:无法启动程序,操作在当前状态下不合法 [英] Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

查看:290
本文介绍了Visual Studio 2017错误:无法启动程序,操作在当前状态下不合法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全新安装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.

有关VS 2017中JS调试的完整信息,请点击此处:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆