Visual Studio 2010远程调试 - 无法连接:访问被拒绝 [英] Visual Studio 2010 remote debugging - Unable to connect: Access Denied
问题描述
我试图远程调试一个exe,但我不断收到一条错误消息。以下是配置:
I'm trying to remotely debug an exe, but I keep getting an error message. Here's the configuration:
在开发机器上:
- Windows Vista 32-位
- Visual Studio 2010
- 防火墙已禁用
在远程计算机上:
- Windows 7 64位
- msvsmon.exe dev机器)
- MyProgram.exe(32位,C#,.Net 4.0)
- 防火墙已禁用
- Windows 7 64-bit
- msvsmon.exe (shared from the dev machine)
- MyProgram.exe (32-bit, C#, .Net 4.0)
- Firewall disabled
两台计算机位于同一个域。我已使用同一帐户登录,该帐户在两台计算机上都具有管理员权限。
Both machines are on the same domain. I'm logged in with the same account, which has administrator rights on both machines.
这里是我的操作:
- 在远程计算机上启动msvsmon.exe(使用以管理员身份运行)
- msvsmon输出:new server命名为
domain\login @ machine
创建。正在等待输入连接。 - 从visual studio:调试>附加到进程。使用
domain\login @ machine
- em>:无法连接到名为machine的Microsoft Visual Studio远程调试监视器。访问被拒绝。
- msvsmon输出: domain\login connected
填充限定词字段
- Starting msvsmon.exe on the remote computer (using 'run as admin')
- msvsmon output: new server named
domain\login@machine
created. Waiting for input connections. - From visual studio: Debug > Attach to process. Filling the Qualifier field with
domain\login@machine
- visual studio output: Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named "machine". Access denied.
- msvsmon output: domain\login connected
我错过了什么?
编辑:
看起来像它的工作如果开发机是64位(试图在Win7 x64)。所以现在的问题是:如何使它的工作从我的Windows Vista 32?
Looks like it's working if the dev machine is 64-bit too (tried on a Win7 x64). So now the question is: how to make it work from my Windows Vista 32?
推荐答案
所以答案是: 。
要在远程64位计算机上调试进程(32或64位),必须在本地使用64位计算机。
To debug a process (either 32 or 64 bits) on a remote 64-bit machine, you have to use a 64-bit machine locally.
这篇关于Visual Studio 2010远程调试 - 无法连接:访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!