Visual Studio 2017,无法调试或运行应用程序 [英] Visual Studio 2017, cannot debug or run the application

查看:944
本文介绍了Visual Studio 2017,无法调试或运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天打开计算机后,我完全无法调试或运行该应用程序.如果我发布该项目,则效果很好.但是,如果我从Visual Studio中运行它,则只是卡住了,Visual Studio停止了响应.

After I turned on my computer today, I haven't been able to debug or run the application at all. If I publish the project, it works fine. But if I run it from Visual Studio, it's just stuck loading and Visual Studio stops responding.

这是我强制退出应用程序时遇到的错误:

Here are the errors I get when I force quit the application:

引发异常:mscorlib.dll中的'System.UnauthorizedAccessException'
引发异常:mscorlib.dll中的'System.Globalization.CultureNotFoundException'
引发异常:mscorlib.dll中的'System.Security.SecurityException'
程序"[6276] chrome.exe:WebKit"已退出,代码为-1(0xffffffff).
程序"[8852] iisexpress.exe"已退出,代码为-1(0xffffffff).

Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.dll
Exception thrown: 'System.Globalization.CultureNotFoundException' in mscorlib.dll
Exception thrown: 'System.Security.SecurityException' in mscorlib.dll
The program '[6276] chrome.exe: WebKit' has exited with code -1 (0xffffffff).
The program '[8852] iisexpress.exe' has exited with code -1 (0xffffffff).

您是否经历过类似的经历?我一直在尝试查找答案,但找不到任何答案.我也在不同的机器上尝试过,也无法在那儿调试应用程序.

Have you ever experinced anything similar? I've been trying to look up answers but haven't been able to locate any. Also I tried on a diffrent machine, and cannot debug the application there either.

尝试使用Nuget更新和重新安装所有软件包.

Have tried updating and reinstalling all packages using Nuget.

最好的问候索兰.

推荐答案

昨天Chrome更新后,我们遇到了同样的问题.如果您在选项中关闭Javascript调试,则:

We had the same problem after a Chrome update yesterday. If you switch off the Javascript debugging in options:

选项->调试->在Asp.NET中启用Javascript调试

Options -> Debugging -> Enable Javascript Debugging in Asp.NET

然后运行正常.

这篇关于Visual Studio 2017,无法调试或运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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