本文介绍了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:

推荐答案

对我来说,解决方案(解决方法)是关闭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调试的完整信息,请点击此处: https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/

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错误:无法启动程序,操作在当前状态下不合法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 09:21