全新安装Visual Studio 2017后,我try 运行.NET Core Web项目,当try 在Chrome上运行该项目时,收到以下错误:

无法启动程序,当前的操作不合法 状态

推荐答案

对我来说,解决方案(变通办法)是关闭Chrome上的JavaScript调试,我认为这是VS 2017推出的一项新功能.

Go to Tools > Options > Debugging > General and turn off the setting for Enable JavaScript Debugging for ASP.NET (Chrome and IE).

VS2017 Disable JS Debugging

这已经是一个已知的问题了,而且有seems to have an investigation underway个.

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

Asp.net相关问答推荐

捕获对 ASP.NET ASMX Web 服务的 SOAP 请求

为 Web 请求实现速率限制算法的最佳方法是什么?

不支持关键字:服务器

你如何确定哪个验证器失败了?

AddDefaultTokenProviders:它是什么以及如何使用那些默认提供者?

IIS 中的 existingResponse="PassThrough" 是什么意思?

如何在 asp net core api 中使用 Created(或 CreatedAtAction / CreatedAtRoute)

HttpResponse.End 或 HttpResponse.Close 与 HttpResponse.SuppressContent

回发不适用于 aspx 页面作为默认文档

如何保护存储在 web.config 中的密码?

.NET 4.0 中的自定义 MembershipProvider

如何进入 IIS 管理器?

当文件上传超出 ASP.NET MVC 中允许的大小时显示自定义错误页面

如何response.write bytearray?

从物理路径获取相对虚拟路径

~/ 等价于 javascript

在.net的内存数据库中

使用 jQuery 从 asp:RadioButtonList 读取选定的值

Request.UserHostAddress 和 Request.ServerVariables["REMOTE_ADDR"].ToString() 有什么区别

ModelClientValidationRule 冲突