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 the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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