Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

issues when using the QuickOPC A&E Client to access and subscribe to an OPC A&E Server on a remote machine

More
02 Nov 2018 08:06 #6816 by support
From: U.
Sent: Thursday, November 1, 2018 1:33 PM
To: Z.
Subject: ...

Hi Z.,

I am having issues when using the QuickOPC A&E Client to access and subscribe to an OPC A&E Server on a remote machine on my network. I always receive an “System.UnauthorizedAccessException: Access is denied.” error whether I try to browse the servers, get it’s vendor specific attributes or subscribe to events. The IP of the machine I’m using the QuickOPC client is x.x.x.116 and the server on which the OPCLabs.KitEventServer.2 is running is x.x.x.137. Both of these machines are the members of a workgroup called FTD.

I also have another remote OPC A&E server (IntelliMAX.OPC.AlarmServer.1) running on the x.x.x.137 machine that’s publishing events. Now I get the following errors when I use the different APIs of QuickOPC client to access or subscribe this OPC Server from x.x.x.116 . For example, if I try to browse the server, I get:

OpcLabs.EasyOpc.OperationModel.OpcException: An OPC operation failure with error code -2147467263 (0x80004001) occurred, originating from 'OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient'. The inner exception contains details about the problem. ---> System.NotImplementedException: Not implemented
--- End of inner exception stack trace ---
at OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient.CheckOpcResult(CHResult* hResult, IErrorInfo* pErrorInfo)
at OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient.CheckOpcResult(CHResult* hResult)
at OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient.InternalBrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)
at OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient.BrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.ForwardingEasyAEClient.BrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.ForwardingEasyAEClient.BrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.ForwardingEasyAEClient.BrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.PSBoxingEasyAEClient.BrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.ForwardingEasyAEClient.BrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.LicensingEasyAEClient.BrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)
at OpcLabs.EasyOpc.AlarmsAndEvents.EasyAEClient.BrowseNodes(ServerDescriptor serverDescriptor, AENodeDescriptor parentNodeDescriptor, AEBrowseParameters browseParameters)

If I try to query the event categories, I get:
OpcLabs.EasyOpc.OperationModel.OpcException: An OPC operation failure with error code -2147024891 (0x80070005) occurred, originating from 'OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient'. The inner exception contains details about the problem. ---> System.UnauthorizedAccessException: Access is denied.
--- End of inner exception stack trace ---
at OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient.CheckOpcResult(CHResult* hResult, IErrorInfo* pErrorInfo)
at OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient.CheckOpcResult(CHResult* hResult)
at OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient.InternalQueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)
at OpcLabs.EasyOpcRaw.AlarmsAndEvents.RawEasyAEClient.QueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.ForwardingEasyAEClient.QueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.ForwardingEasyAEClient.QueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.ForwardingEasyAEClient.QueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.PSBoxingEasyAEClient.QueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.ForwardingEasyAEClient.QueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)
at OpcLabs.EasyOpc.AlarmsAndEvents.Internal.LicensingEasyAEClient.QueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)
at OpcLabs.EasyOpc.AlarmsAndEvents.EasyAEClient.QueryEventCategories(ServerDescriptor serverDescriptor, AEEventType eventTypes)


The surprising bit is that I’m able to browse and subscribe to events on this remote server from x.x.x.116 using the Visual OPCTest Tracer Demo

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.057 seconds