Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state(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
推荐答案
对我来说,解决方案(workaround)是关闭 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(Chrome 和 IE)启用 JavaScript 调试设置.
这已经是一个已知问题,似乎正在进行调查.
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 错误:无法启动程序,当前状态下的操作不合法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual Studio 2017 错误:无法启动程序,当前状态下的操作不合法
基础教程推荐
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- WPF 模态进度窗口 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
