Wonderware OPCENUM error 0x80040153
Note: the information below also exists as a PDF with screenshot images.
If you install TopView OPC/SCADA on a Wonderware machine after installing the Wonderware OPC Server software, you may not be able to query to local OPC Servers (OPCENUM). The error returned is 0x80040153
This issue is known by Wonderware and can be caused by the installation of any OPC software, not just TopView.
Here is some information from Wonderware on this issue:
L00115135: In the OPCClient object, the installed DAServers are not listed under the Server Name. For the OPCClient object, the following error message is shown in the SMC log:
.Net Editor Info - 17:35:14.3125809
Failed to create instance of OPCEnum on server node COMPST01: 0x80040153
As a workaround, if you invert the installation sequence by installing the OPC Server first and then the Bootstrap, the OPCEnum is installed without anonymous logon and a remote connection to the OPC Server is possible. You can also resolve this issue by deleting and creating the anonymous logon on the OPCEnum permission.
FS Gateway 3.0 SP1 Readme Information: Known issues
L00115135: After installing a third-party OPC server on top of an already installed DAServer, OPC clients may not be able to browse for OPC servers using OPCEnum, and the client receives error 0x80040153. As a workaround, install the DAServer last.
The first item referenced above from Wonderware states “You can also resolve this issue by deleting and creating the anonymous logon on the OPCEnum permission”.
This workaround does fix the issue. Here are the detailed steps for fixing the error by removing and adding Anonymous logon.
Remove/Add Anonymous Logon
On the Wonderware/TopView computer:
- Run DCOMCNFG (Start…Run…DCOMCNFG)
- Go to Component Services…Computers…My Computer… DCOM Config
- Under “DCOM Config” find OPCENUM
- Right-click OpcEnum and click Properties
- Security Tab
- Launch and access permissions: Customize should be selected
- Click [Edit] next to Customize
- Anonymous Logon is listed with all permissions checked
- Click [Remove] to remove Anonymous Logon
- Click [Add]
- Under “Enter the object names to select” enter Anonymous Logon and click [OK]
- Re-enable the Anonymous Logon permissions for local and remote activation and launch
- Click [OK] until all dialogs are closed
- Close DCOMCNFG
Restart OPCENUM Service
You should now be able to query the local OPC Servers from TopView.
- Run the Windows Services app (Control Panel…Admin tools…Services)
- Find OPCENUM in the list of Services
- If the OPCENUM Service is stopped, right-click and choose “Start”
- If the OPCENUM Service is running, right-click and choose “Restart”