DCOM hardening - OPC Error in method IConnectionPoint.Advise|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
DCOM hardening - OPC Error in method IConnectionPoint.Advise
Avatar
Zohar Tsioni
New Member
Members
Forum Posts: 2
Member Since:
11/20/2018
sp_UserOfflineSmall Offline
1
08/15/2022 - 13:19
sp_Permalink sp_Print

Hi all

I'm trying to connect my (C++) OPC DA client remotely to Matrikon simulation server when both (client/server) are running on windows servers 2019 with DCOM hardening.

I change the authentication level to RPC_C_AUTHN_LEVEL_PKT_INTEGRITY in CoInitializeSecurity() and set access/security permissions in both windows servers to Everyone and anonymous users. (Of course: firewall is disabled in both server/client) 

My OPC DA client succeeds to connect remotely, browse Matrikon tree, create a group and add items to it - but no updates are coming.

I traced the interface calls and I found out that IConnectionPoint.Advise() method failed (Object exporter specified was not found HRESULT: 0x80070776). Failure in this method prevents from Matrikon server to send updates to my client.

Any suggestion why specifically IConnectionPoint.Advise() method fails? How can I make it succeeds?

Thanks in advance.

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/15/2022 - 14:48
sp_Permalink sp_Print

It usually means the process used by the Matrikon simulation server does not have access rights to the client process.

i.e. it is not enough to configure the server for Everyone - you need to configure the client too.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 59
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855