无法使用 VS2010 进行远程调试 [英] Cannot get Remote Debugging working with VS2010

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

问题描述

我在同一个公司域中有一台服务器和一台工作站.我的用户是两台机器上的本地管理员.我已经安装了 VS2010 版本的 MSVSMON 并将其设置为在我的用户 DOMAIN\greg.b 下的服务器上作为服务运行(我给自己作为服务登录").我使用我的域帐户登录到服务器并启动远程调试监视器.然后我从我的 Visual Studio 连接到服务器.在服务器上的监视器中我可以看到

I have a server and a workstation on the same corporate domain. My user is a local administrator on both machines. I have Installed the VS2010 version of MSVSMON and set it to run as a service on the server under my user DOMAIN\greg.b (I gave myself "log on as service"). I log onto the server using my domain account and start Remote Debug monitor. I then connect to the server from my Visual Studio. In the monitor on the server I can see

23/09/2010 16:26:33 DOMAIN\greg.b 已连接.

23/09/2010 16:26:33 DOMAIN\greg.b connected.

片刻之后,我从 Visual Studio 收到一个对话框,内容为

Then a moment later, I get a dialog from Visual Studio saying

无法连接到名为SERVER_NAME"的 Microsoft Visual Studio 远程调试监视器.目标计算机上的 Visual Studio 远程调试器无法连接回这台计算机.防火墙可能会阻止通过 DCOM 与本地计算机进行通信.

Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'SERVER_NAME'. The Visual Studio Remote Debugger on the target computer cannot connect back to this computer. A firewall may be preventing communication via DCOM to the local computer.

我在我的工作站和服务器上都打开了 DCOM 端口 (TCP 135) 作为 此处详述.
我已经在关闭 Windows 防火墙服务的情况下尝试过.

I've got the DCOM ports open (TCP 135) on both my workstation and server as detailed here.
I have tried it with the Windows Firewall service turned off.

我完全被难住了!

服务器运行的是运行 x86 MSVSMON 的 Windows 2003 Standard SP2 32 位.我的工作站运行的是 Windows 7 Pro 64Bit 和 VS2010 Pro.

The server is running Windows 2003 Standard SP2 32bit running the x86 MSVSMON. My workstation is running Windows 7 Pro 64Bit and VS2010 Pro.

推荐答案

确保 devenv.exe (visual studio) 位于防火墙程序例外列表中并选中 DOMAIN 复选框!

Make sure devenv.exe (visual studio) is in the firewall program exceptions list on the with the DOMAIN checkbox checked!

我遇到了同样的情况,停止了在我的机器 (win7 x64) 上运行的防火墙服务,但在我进行此更改之前它无法正常工作.

I was in the same situation, stopped the firewall services running on my machine (win7 x64) but it did not work until I made this change.

这篇关于无法使用 VS2010 进行远程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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