A DCOM error occurred trying to contact the remote computer. Access is denied.

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at A DCOM error occurred trying to contact the remote computer. Access is denied..

Remote debugging uses DCOM to communicate between the local and remote computers in the following situations:

  • The debugger is set to Native Compatibility Mode or Managed Compatibility Mode is checked in the Tools / Options / Debugging page

  • You are debugging managed C++ (C++/CLI) code.

  • In Visual Studio 2013, when Enable native Edit and Continue is checked in the Tools / Options / Debugging page

  • Some third party debugging scenarios

This error occurs when the Visual Studio process cannot authenticate itself (or the supplied credentials were deemed insufficient) to the remote debugger process over DCOM. One or more of the following workarounds might resolve the issue:

  • Turn off Native Compatibility Mode and Managed Compatibility Mode.

  • In Visual Studio 2013, turn off Enable native Edit and Continue.

  • Reboot both computers.

  • If remote debugging requires entering credentials, check the option to save the credentials.

Remote Debugging Errors and Troubleshooting
Remote Debugging

Show: