0x80070005 DCOM Error

Symptom

0x80070005 is a DCOM error that appears in the OPC client application when it succeeds in launching an OPC server or OpcEnum, but fails to receive a reply from either of the applications.

 

Cause

This error may occur in different conditions:

  • On the OPC server computer, the OPC client user account does not have the correct access control list (ACL) permissions in the system-wide DCOM settings, Access Permissions, and Edit Default.
  • On the OPC client computer, the OPC server user account does not have the correct access control list (ACL) permissions in the system-wide DCOM settings, Access Permissions, and Edit Limits.
  • On the OPC client computer, the DCOM default impersonation level is set to Anonymous instead of Identify, and the Anonymous Logon access control entry (ACE) does not exist in the OPC client computer, access control list (ACL) permissions in the system-wide DCOM settings, Access Permissions, and Edit Limits.

This error occurs when DCOM communication is stopped by the access control list (ACL) of either the OPC client computer or OPC server computer.

 

Repair Procedure

To fix this error, proceed as indicated in the following procedures.

 

Modify the Access Control List (ACL) for the OPC Server Computer

The system-wide changes affect all the Windows applications that use DCOM, including the OPC application. To make the necessary changes on the OPC server computer, proceed as follows:

  1. In the Windows search box, enter DCOMCNFG.
  1. Press ENTER.
  • The DCOM configuration process is initiated.
  1. In the Component Services window, under Console Root, expand Component Services, and then expand the Computers folder.
  • My Computer is in the Computers folder.
  1. Right-click My Computer and select Properties.
  1. In the My Computer Properties dialog box, select the COM Security tab.
  1. In the Access Permissions section, click Edit Default.
  1. Add Everyone and enable Local and Remote Access.
  1. Click OK.

 

Modify the Access Control List (ACL) for the OPC Client Computer

The system-wide changes affect all the Windows applications that use DCOM, including the OPC application. To make the necessary changes on the OPC client computer, proceed as follows:

  1. In the Windows search box, enter DCOMCNFG.
  1. Press ENTER.
  • The DCOM configuration process is initiated.
  1. In the Component Services window, under Console Root, expand Component Services, and then expand the Computers folder.
  • My Computer is in the Computers folder.
  1. Right-click My Computer and select Properties.
  1. In the My Computer Properties dialog box, select the COM Security tab.
  1. In the Access Permissions section, click Edit Default.
  1. Add Everyone and enable Local and Remote Access.
  1. Click OK.
  1. Select the Default Property tab.
  1. From the Default Impersonation Level drop-down list, select Identify.
  1. Click Apply.