[Remote Debugging – Visual Studio] Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor…

26 Feb


When you try to debug remote server (“Default” transport) you may bump into this error:



“Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named “xxxxx”.
The requested name is valid, but no data of the requested type was found
There is no server by the specified name running on the remote computer.”


This occurs because VS debugger tries to communicate with the remote target via Named Pipes. This means it take the provided qualifier (“username@hostname”) and tries to open a pipe transport by using the given host name (EXACTLY) and will try to authenticated using the given user name and the user’s password (the one that runs VS) .

If one of those true, connection will fail:

  1. Target is in a different domain (no dns resolving for the given hostname)
  2. Debugging user (the one that runs VS) does not exists on remote server (or has different password)
  3. User on remote target does not have enough permissions
  4. Firewall


  1. Make sure firewall is not blocking your request
  2. Make sure the installed version of Visual Studio Remote Debugging Monitor is supported by the running Visual Sutdio
  3. Create local user on remote target, with the exact user name and password as the debugging user (that runs VS process)
  4. If dns resolving is unavailable (source and target on different domains) open this file
    and add a new line at the bottom:
    “ TargetHostName” (without quotes)
    This will map the target host name with an IP.

This will enable VS to create a new Named Pipe targeting the correct target with correct user and hostname.

Please leave a comment if anything is unclear.

Leave a comment

Posted by on February 26, 2013 in Uncategorized


Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: