Search code examples
.netvisual-studio-2010c#-4.0remote-debugging

Visual Studio 2010 remote debugging - Unable to connect: Access Denied


I'm trying to remotely debug an exe, but I keep getting an error message. Here's the configuration:

On the dev machine:

  • Windows Vista 32-bit
  • Visual Studio 2010
  • Firewall disabled

On the remote machine:

  • 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.

And here's what I do:

  • 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

What did I miss?

EDIT:

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?


Solution

  • So the answer is: it's not possible.

    To debug a process (either 32 or 64 bits) on a remote 64-bit machine, you have to use a 64-bit machine locally.