Error: The Microsoft Visual Studio Remote Debugging Monitor on the remote computer does not have permission to connect to this computer

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This error occurs when the user who is trying to run the Visual Studio Remote Debugging Monitor (msvsmon) does not have an account on the local computer. This error may occur when remote debugging using the legacy debugging engine.

To fix this problem

  • Add a user account to the Visual Studio debugger host computer, with the same name and password as the user account running msvsmon on the remote computer,

    - or -

  • Run msvsmon as a user who has permission to call into the local computer. This means the user must be a domain user and an administrator on the msvsmon computer. You can specify the user account to run msvsmon in one of two ways:

    • Right-click the msvsmon icon and choose Run As on the shortcut menu

      - or -

    • At the Command Prompt, run runas.exe.

See also