无法连接到在 Windows 7 x64 上运行的 MSVSMon

发布于 2024-10-21 00:18:01 字数 441 浏览 5 评论 0原文

我有一台运行 Windows 7 Enterprise x64 的测试机。我在其上设置了 MSVSMon(尝试了 64 位和 32 位版本),并确保防火墙设置不会阻止远程调试器。现在,我尝试从运行 Windows 2008 R2 和 Visual Studio 2010 的开发盒连接到此设备。但是,当我尝试连接到远程调试器时,它会显示以下错误消息:

“无法连接到 Microsoft Visual Studio ”。远程计算机上没有运行指定名称的服务器。

远程调试监视器名为“ xxxxx - 我已验证我使用的名称是正确的(从 MSMSMon.exe 选项对话框中选择的) - 开发盒确实可以访问远程计算机,我可以通过连接到它的文件共享来检查。 - Visual Studio 的同一实例能够很好地连接到另一台类似的测试机器,但运行的是 32 位 Windows 7 Enterprise。

有什么想法吗? 文号

I have a test machine that runs Windows 7 Enterprise x64. I setup MSVSMon (tried both 64 and 32 bit versions) on it and made sure that the Firewall settings would not block the remote debugger. Now I'm trying to connect to this from my dev box running Windows 2008 R2 and Visual Studio 2010. However when I try to connect to the remote debugger, it shows me the following error message:

"Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named "xxxxx". THere is no server by the specified name running on the remote computer.

Some obvious things:
- I have verified that the name I'm using is correct (picked it up from teh MSMSMon.exe options dialog)
- The dev box does have access to the remote machine, I can check that by connecting to it's file shares.
- The same instance of visual studio is able to connect just fine to another similar test machine, but one running a 32 bit Windows 7 Enterprise.

Any ideas?
Vin

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

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

发布评论

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

评论(4

饮湿 2024-10-28 00:18:01

确保您是否从 VS2010 进行调试,其调试器适用于 2010 年而不是 2008 年,和/或反之亦然

Make sure if you are debugging from VS2010,its the debugger for 2010 and not 2008, and/or vice versa

花间憩 2024-10-28 00:18:01

我会检查您的防火墙没有阻止连接。仅仅因为您可以连接到文件共享并不意味着它允许 DCOM 连接到远程调试器。

请参阅 http://msdn.microsoft.com/en -us/library/bt727f1t(v=VS.100).aspx

I would check your firewall is not blocking the connection. Just because you can connect to the fileshare doesn't mean it's allowing the DCOM connection to the Remote Debugger.

See http://msdn.microsoft.com/en-us/library/bt727f1t(v=VS.100).aspx

乱世争霸 2024-10-28 00:18:01

我通常通过我的开发计算机上的共享在远程计算机上运行 MSVSMon,其中安装了多个版本的 Visual Studio。当我运行错误版本的 MSVSMon 时,出现“远程计算机上没有运行指定名称的服务器”错误。例如,如果 VS2008 版本的 MSVMon 正在远程计算机上运行,​​并且我尝试从 VS2010 连接到该进程。

MSVMon for VS2008 的默认位置:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger

MSVMon for VS2010 的默认位置:

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Remote Debugger

I generally run MSVSMon on the remote machine from a share on my dev machine where I have several versions of Visual Studio installed. I get "There is no server by the specified name running on the remote computer" error when I run the wrong version of MSVSMon. For example if the VS2008 version of MSVMon is running on the remote machine and I am trying to attach to the process from VS2010.

Default location of MSVMon for VS2008 :

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger

Default location of MSVMon for VS2010 :

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Remote Debugger

∝单色的世界 2024-10-28 00:18:01

我发现很多人都遇到过这种情况。尝试在我的博客文章中找到解决方案:
http://livshitz.wordpress.com/2013/02/26/remote-debugging-visual-studio-unable-to-connect-to-the-microsoft-visual- studio-remote-debugging-monitor/#more-144

以下是解决方案的片段:

  • 确保防火墙没有阻止您的请求
  • 确保正在运行的 Visual Sutdio 支持已安装的 Visual Studio 远程调试监视器版本
  • 在远程目标上创建本地用户,使用与调试用户相同的用户名和密码(运行 VS 进程)
  • 如果 dns 解析不可用(源和目标位于不同域),请打开此文件
    “c:\Windows\system32\drivers\etc\hosts”
    并在底部添加新行:
    “xxx.xxx.xxx.xxx TargetHostName”(不带引号)
    这会将目标主机名与 IP 进行映射。

I've found alot of ppl bump into this scenario. Tried to cup the solution in my blog post:
http://livshitz.wordpress.com/2013/02/26/remote-debugging-visual-studio-unable-to-connect-to-the-microsoft-visual-studio-remote-debugging-monitor/#more-144

Here is the snippet of the solution:

  • Make sure firewall is not blocking your request
  • Make sure the installed version of Visual Studio Remote Debugging Monitor is supported by the running Visual Sutdio
  • Create local user on remote target, with the exact user name and password as the debugging user (that runs VS process)
  • If dns resolving is unavailable (source and target on different domains) open this file
    "c:\Windows\system32\drivers\etc\hosts"
    and add a new line at the bottom:
    "xxx.xxx.xxx.xxx TargetHostName" (without quotes)
    This will map the target host name with an IP.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文