简体   繁体   English

Windows Web服务框架中发生无法识别的错误

[英]Unrecognized error occurred in the Windows Web Services framework

I'm trying to build and run a simple project in Visual Studio 2017 (C++) in x64 using the Local Windows Debugger. 我正在尝试使用Local Windows Debugger在x64中使用Visual Studio 2017(C ++)构建和运行一个简单的项目。 However every time I try to run it using the debugger I get this error. 但是每次我尝试使用调试器运行它时都会出现此错误。

This error doesn't show up when I change it from x64 to x86, but I need it to compile to x64. 当我将它从x64更改为x86时,此错误不会显示,但我需要将其编译为x64。 This has happened on both computers that I've tried it on, and seems to happen in every one of my projects. 这种情况发生在我尝试过的两台计算机上,似乎发生在我的每个项目中。 I've tried reinstalling Visual Studio already and nothing's changed. 我已经尝试重新安装Visual Studio,没有任何改变。 I've tried adding 'devenv.exe' as an exception to the Windows Firewall but no changes there either, even when I disabled the firewall completely. 我尝试添加'devenv.exe'作为Windows防火墙的例外,但也没有更改,即使我完全禁用了防火墙。 My antivirus isn't affecting it at all either: still happens when I disable it. 我的防病毒软件根本不影响它:当我禁用它时仍然会发生。

The application runs fine when I find it in the explorer and run it manually but then I don't have any debugging tools. 当我在资源管理器中找到并运行它时,应用程序运行正常,但我没有任何调试工具。

What am I doing wrong here, how do I make it build and run my project as x64? 我在这里做错了什么,如何使其构建并以x64运行我的项目?

I get this error every time I have an active VPN connection. 每次我有一个活动的VPN连接时,我都会收到此错误。 If you use a VPN, try disconnect and see if the error disappears. 如果您使用VPN,请尝试断开连接并查看错误是否消失。

If you want to use a VPN, the solution (assuming you have Visual Studio 2017 Version 15.7 or later) is as follows: 如果您想使用VPN,解决方案(假设您有Visual Studio 2017版本15.7或更高版本)如下:

  • Go to the Windows Start Menu and launch the “Developer Command Prompt for VS 2017 Preview” 转到Windows开始菜单并启动“VS 2017预览版的开发人员命令提示符”
  • Run: "%DevEnvDir%vsregedit.exe" set "%VSINSTALLDIR:~0,-1%" HKCU Debugger UseAnonymousPipes dword 1 运行:“%DevEnvDir%vsregedit.exe”设置“%VSINSTALLDIR:~0,-1%”HKCU调试器UseAnonymousPipes dword 1
  • Restart VS if it is already running 如果VS已在运行,请重新启动VS.

That solution is from this link to Microsoft . 该解决方案来自Microsoft的链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM