
02/29/2024

Trying to connect to a remote OPCDA server and getting the following error:
System.InvalidCastException: Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘OpcRcw.Comn.IOPCServerList2’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{9DD0B56C-AD9E-43EE-8305-487F3188BF7A}’ failed due to the following error: A security package specific error occurred. (Exception from HRESULT: 0x80070721).
I am using the following apis:
OpcNetApi – 2.1.108
OpcNetApi.Com – 2.1.108
OpcComRcw – 2.1.109.57
Application: 32 bit, .Net 4.8 (and using the appropriate OPC libraries for this version)
Connection works fine using OPC Quick Client to the same remote OPC Server.

02/29/2024

Do not have core components installed on the client computer.
OPCenum is only for the OPC server.
The test client application is x86
I ran the test client locally on the server running the OPC server as a test and it was able to connect.
As I mentioned, Kepware’s Quick Client connected to the remote OPC server just fine.

02/29/2024

OPCEnum is installed as I have KepserverEX installed.
Installed the core components, still getting the same error.
The server running the OPC server may be running an older version of the core components.
… After updating the core components on the server side I now get:
The COM server does not support the interface ‘OpcRcw.Da.IOPCServer’
Tried both 32 and 64 bit builds.
Still want to know why the OPC Quick Client can connect just fine.
1 Guest(s)