Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 208
gregseth Avatar asked Feb 27 '12 12:02

gregseth


People also ask

How do I connect to Visual Studio Remote Debugger?

To perform remote debugging using Visual Studio: On the remote computer, in Visual Studio, choose Connect to Remote Debugger from the Tools menu. In the Connect to Remote Debugger dialog box, enter a connection string, and click Connect.

How do I enable remote debugging in Windows 10?

In the Windows Start menu, search for and open Windows Firewall, and select Allow an app through Windows Firewall. Make sure Remote Debugger or Visual Studio Remote Debugger appears in the Allowed apps and features list with a selected check box, and the correct network types are selected.


1 Answers

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.

like image 102
gregseth Avatar answered Oct 26 '22 23:10

gregseth