Skip to main content
InSource Solutions

TN DA101 FSGateway: Failed to create OPCEnum error

insource logo large.jpg

                   Tech Note        

 

Description

Trying to configure an OPC connection in FSGateway, but unable to browse installed OPC Servers.

 

  • Author: Dillon Perera
  • Published: 10/9/2014
  • Applies to: FSGateway

 

Instructions

Problem:

Trying to setup a connection to an OPC Server from FSGateway, but when browsing get the following error:

OPCEnumError.JPG

 

OPCEnum is used to allow browsing of installed OPC Servers, and convert's the internal Windows CLSID to an English name.

 

Workaround:

OPCEnum just finds and fills in the CLSID for you, but the user can do this manually.

  1. Go to Start > Control Panel > Administrative Tools > Component Services
  2. Expand Component Services > Computers > My Computer > DCOM Config
  3. A list of all DCOM applications will be shown.  Find your OPC Server in the list.  It may be listed by product name, company name, or have an arbitrary name, so you will need to search for it.
  4. When you find your OPC Server in the list, right click on it and select Properties.
  5. On the General tab, the Application ID listed is the CLSID that you will need to put in FSGateway.  Highlight and copy this value.
     OPCEnum_CLSIDExample.JPG
  6. Go back to FSGateway, and paste the Application ID from Component Services into the Server Name field.
    OPCEnum_FSGatewayFilledIn.JPG