无法连接到在 Windows 7 x64 上运行的 MSVSMon
我有一台运行 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
确保您是否从 VS2010 进行调试,其调试器适用于 2010 年而不是 2008 年,和/或反之亦然
Make sure if you are debugging from VS2010,its the debugger for 2010 and not 2008, and/or vice versa
我会检查您的防火墙没有阻止连接。仅仅因为您可以连接到文件共享并不意味着它允许 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
我通常通过我的开发计算机上的共享在远程计算机上运行 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
我发现很多人都遇到过这种情况。尝试在我的博客文章中找到解决方案:
http://livshitz.wordpress.com/2013/02/26/remote-debugging-visual-studio-unable-to-connect-to-the-microsoft-visual- studio-remote-debugging-monitor/#more-144
以下是解决方案的片段:
“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:
"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.