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

Note

This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. Download it here.

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.

See Also

Remote Debugging Errors and Troubleshooting
Remote Debugging