远程调试:目标计算机无法连接回此计算机。认证失败

发布于 2024-10-04 09:32:37 字数 1010 浏览 4 评论 0原文

我正在尝试设置从我的开发计算机到在虚拟机中运行的生产环境的远程调试,但无论我做什么,我都会收到以下错误:

无法连接到 Microsoft Visual Studio 远程调试监视器 命名为 .这 Visual Studio 远程调试器 目标计算机无法连接回 这台电脑。认证失败。 请参阅“帮助”以获取帮助。

这是我的设置:

主机: Windows 7 专业版 x86 Visual Studio 2010 终极

虚拟机: Windows 7 Professional x86

两台计算机位于同一域中,具有相同的用户名和密码。远程计算机上的防火墙已关闭,主机上的防火墙已打开,但将其关闭会产生相同的错误。两台计算机上的帐户都是管理员组的成员,并以管理员身份运行 msvsmon 和 Visual Studio,或者两者之一/或产生相同的结果。当我将服务器名称放入“附加到进程”的限定符字段中并单击刷新时,我可以看到远程计算机上的日志显示主机已连接,但紧接着出现上述错误。最后,这可能是最重要的信息,当身份验证失败时,我会在偶数日志中收到一条条目,表明用户帐户已被锁定:

用户帐户被锁定。

主题:
安全 ID:SYSTEM
帐户名称:MyHostComputerName$
账户域: 两台机器都在的域
登录ID:0x3e7

被锁定的帐户:
安全 ID: 我的主机计算机名 \ 我的用户名 *(两台计算机上的名称相同)* 帐户名: 我的用户名

其他信息:
呼叫者 计算机名称:MyVirtualMachineName

我已经阅读了几乎所有教程、帮助票以及有关此问题和远程调试的随机信息,并尝试了几乎所有“快速修复”。我将非常感谢任何想法。如果需要,我可以提供任何其他信息。提前致谢。

I am trying to set up remote debugging from my development machine into a production environment running in a virtual machine, but no matter what I do I get the following error:

Unable to connect to the Microsoft
Visual Studio Remote Debugging Monitor
named . The
Visual Studio Remote Debugger on the
target computer cannot connect back to
this computer. Authentication failed.
Please see Help for assistance.

This is my setup:

Host Machine:
Windows 7 Professional x86
Visual Studio 2010 Ultimate

Virtual Machine:
Windows 7 Professional x86

Both computers are on the same domain, with the same username and password. The firewall on the remote computer is turned off and the firewall on the host is on, but turning it off produces the same error. The accounts on both machines are members of the Administrators group and running both msvsmon and visual studio as administrator or either/or produces the same result. When I put the server name in the qualifier field in "attach to process" and click refresh, I can see the log on the remote machine saying that the host is connected but that is followed immediately by the above error. Lastly, and this may be the most important piece of information, when the authentication fails, I get an entry in the even log that states that a user account was locked out:

A user account was locked out.

Subject:
Security ID: SYSTEM
Account Name: MyHostComputerName$
Account Domain:
DomainWhichBothMachinesAreOn
Logon ID: 0x3e7

Account that was locked out:
Security ID:
MyHostComputerName \ MyUsername
*(which is identical on both machines)* Account Name:
MyUserName

Additional Information:
Caller
Computer Name: MyVirtualMachineName

I have read seemingly every tutorial, help ticket and random bit of information regarding this problem and remote debugging in general and tried just about every "quick fix". I would be very appreciative of any ideas. I can provide any additional information if needed. Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

堇色安年 2024-10-11 09:32:37

“MyHostComputerName \ MyUsername”似乎表明VM服务正在尝试使用本地用户进行身份验证,而不是域用户

是否创建了相同的用户和域用户。密码作为两个系统上的本地帐户?

http://msdn.microsoft.com/en-us/library/ms164725.aspx

"MyHostComputerName \ MyUsername" seems to indicate the VM service is trying to authenticate with a local user, not the domain user

have you created the same user & password as local accounts on both systems?

http://msdn.microsoft.com/en-us/library/ms164725.aspx

我还不会笑 2024-10-11 09:32:37

我在 Windows 7 Pro 上运行 VS 2010 Pro 访问 Windows 2008 R2 上的 Remote Debugger 2010 时遇到同样的问题。我在运行调试器的服务器和我的域上创建了相同的帐户。我在相同的帐户下运行视觉工作室和远程调试器,并具有管理员权限并关闭防火墙。在两个系统上。

我得到的错误是“...目标计算机上的 Visual Studio 远程调试器无法连接回这台计算机...”我在 VS 2010 和 VS 2005 中都发现了这个问题,所以我知道这是我的系统的问题

解决方案- 将本地用户帐户添加到运行 Visual Studio 的系统,因为域帐户不起作用(您可以在域帐户下运行 Visual Studio,您只需要本地帐户存在并分配管理员权限)。

我知道这个答案是针对一个旧线程的,但有很多关于这个问题的线程没有解决方案。

I had this same problem running VS 2010 Pro on Windows 7 Pro accessing Remote Debugger 2010 on Windows 2008 R2. I had created identical accounts on the server running the debugger and on my domain. I was running under my identical accounts both visual studio and remote debugger with administrator rights and with the firewall turned off. on both systems.

the error I got was "... the visual studio remote debugger on the target computer cannot connect back to this computer ..." I found this issue with both VS 2010 and VS 2005 so I knew it was an issue with my system

SOLUTION - add a local user account to your system running visual studio as a domain account won't work (you can run visual studio under the domain account, you just need the local account to be present with admin rights assigned).

I know this answer is for an old thread but there are a number of threads out there on this issue with no solution.

酒解孤独 2024-10-11 09:32:37

转到目标计算机(您要远程调试的计算机),打开 Windows 资源管理器并访问您正在调试的计算机。它将提示输入用户名密码。输入两台计算机上都存在且具有相关权限的帐户凭据。通过身份验证后,您将能够使用远程调试器。

我的配置是工作组中的两台计算机。

Go to target computer (that you want to debug remotely), open windows explorer and visit computer from which you are debugging. It will prompt for username password. Enter credentials for account that exist on both computers and has relevant permission. After it authenticates you will be able to use remote debugger.

My config was BOTH COMPUTERS IN WORKGROUP.

风吹短裙飘 2024-10-11 09:32:37

就我而言,当将 mu 本地计算机凭据添加到远程主机时,问题已解决。

In my case when adding mu local computers credentials to remote host problem solved.

萌面超妹 2024-10-11 09:32:37

当您有一台“带 vs studio 的域管理计算机”计算机尝试远程调试来自不同域的“非域管理计算机”计算机时,凭据是解决方法。

The credential is the workaround for the case when you have a "domain admin computer with vs studio" machine trying to remote debug a "non domain admin computer" machine from different domains.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文