我正在尝试设置远程调试器。
无论我做什么,Visual Studio 总是说“指定的帐户不存在”。
环境:
域、Windows 2008 R2 DC。
两台电脑都加入了域。
远程PC是Windows Server 2003 R2 SP2,32位,在HyperV机器上运行。
本地PC是Windows 7 SP1,64位,Visual Studio 2010,在物理硬件上运行
我使用相同的用户帐户在本地登录,登录到远程PC,并运行“Visual Studio 10远程调试器”服务。该用户帐户是域管理员。
如果重要的话,子网不同(一个是 192.168.0.xxx,另一个是 192.168.1.xxx),但服务器上的 RRaS 在它们之间路由流量,ping 和远程桌面都可以双向工作。
我尝试过的事情:
- 将远程调试器作为服务和应用程序运行。
- 在本地PC上的Windows防火墙中添加规则。远程PC没有防火墙(服务已停止)。
- 将远程 PC 重新加入域。
我应该怎么做才能使远程调试器正常工作?
提前致谢!
I'm trying to setup the remote debugger.
No matter what I do, visual studio keeps saying "The specified account does not exist".
Environment:
Domain, Windows 2008 R2 DC.
Both PCs joined the domain.
Remote PC is windows server 2003 R2 SP2, 32 bits, running on a HyperV machine.
Local PC is Windows 7 SP1, 64 bits, visual studio 2010, running on physical hardware
I'm using the same user account to log on locally, to log on to the remote PC, and to run the "Visual Studio 10 Remote Debugger" service. This user account is domain administrator.
If it matters, the subnets are different (one is 192.168.0.xxx another one is 192.168.1.xxx) but the RRaS on the server routes traffic between them, both ping and remote desktop works both directions.
Things I've tried:
- Run remote debugger as s service, and as an application.
- Add rule to windows firewall on the local PC. The remote PC has no firewall (the service is stopped).
- Re-join remote PC to the domain.
What should I do to make remote debugger work?
Thanks in advance!
发布评论
评论(1)
在 Visual Studio 项目设置中,使用 IP 地址而不是主机名。
看来当远程主机名很长并且包含破折号时(和/或可能还有一些我不知道的其他因素,例如 IPv6,或本地和远程计算机上的不同操作系统),Visual Studio 无法解析它,并且无法连接并提示“指定的帐户不存在”。
要解决此问题,只需在“@”后指定数字 IP 地址而不是主机名,即将“MYCOMPANY\Const@DEV-EC2S-4”替换为“MYCOMPANY\[电子邮件受保护]”。
In the visual studio project settings, use IP address instead of the host name.
It seems when the remote host name is long and contains dashes (and/or possibly there are some other factors I'm not aware of, such as IPv6, or different OS on local and remote machines), visual studio is unable to resolve it, and fails to connect saying "The specified account does not exist".
To workaround just specify the numeric IP address instead of the host name after the "@", i.e. replace "MYCOMPANY\Const@DEV-EC2S-4" with "MYCOMPANY\[email protected]".