DataChangedEventHandler Exception System.Runtime.InteropServices.COMException (0x80040202): Exception from HRESULT: 0x80040202|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
DataChangedEventHandler Exception System.Runtime.InteropServices.COMException (0x80040202): Exception from HRESULT: 0x80040202
Avatar
Stitch35
Member
Members
Forum Posts: 9
Member Since:
06/04/2018
sp_UserOfflineSmall Offline
1
06/13/2018 - 03:59
sp_Permalink sp_Print sp_EditHistory

groupRead.DataChanged += new Opc.Da.DataChangedEventHandler(groupRead_DataChanged);

System.Runtime.InteropServices.COMException (0x80040202): Exception from HRESULT: 0x80040202
at OpcRcw.Comn.IConnectionPoint.Advise(Object pUnkSink, Int32& pdwCookie)
at OpcCom.ConnectionPoint.Advise(Object callback)
at OpcCom.Da.Subscription.Advise()
at OpcCom.Da.Subscription.add_DataChanged(DataChangedEventHandler value)
at Opc.Da.Subscription.add_DataChanged(DataChangedEventHandler value)
at da.Form1.ConnectionToOPCServer()

Base on opc.NetApi

1.It can connect to server but it cannot get value form tag

2.OPCProxy.dll is same version between server and client 

3. I run with administrator

4.I test with application, it is work 

Avatar
Randy Armstrong
Admin
Forum Posts: 1455
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
06/13/2018 - 05:34
sp_Permalink sp_Print

This appears to be a DCOM permission problem.

The account that the Server is running under needs access to the Client process.

Avatar
Rudolf
Slovakia
Member
Members
Forum Posts: 19
Member Since:
07/13/2018
sp_UserOfflineSmall Offline
3
07/31/2018 - 07:28
sp_Permalink sp_Print

Hello Randy,

I am having same issue. May I ask you for a quick tip, how to "The account that the Server is running under needs access to the Client process."
I created on both systems same user added to Administrators group. Is there something else I need to do?
I went through DCOM configuration and it seems to be OK.

Thank you
BR Rudo

Avatar
Randy Armstrong
Admin
Forum Posts: 1455
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
08/01/2018 - 11:35
sp_Permalink sp_Print

Same user; Same password.

The client process needs to be launched as admin if the server was launched as admin.

Not enough to simply add to admin group.

Avatar
Rudolf
Slovakia
Member
Members
Forum Posts: 19
Member Since:
07/13/2018
sp_UserOfflineSmall Offline
5
08/06/2018 - 02:04
sp_Permalink sp_EditHistory
Awaiting Moderation

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