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.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- OPC Alarms&Events
- issues when using the QuickOPC A&E Client to access and subscribe to an OPC A&E Server on a remote machine
issues when using the QuickOPC A&E Client to access and subscribe to an OPC A&E Server on a remote machine
For initial tests like this (not for production), do you have the security "wide open"? - as e.g. in: www.opclabs.com/resources/technology-opc/opc-videos/opc-dcom .
Regards
Please Log in or Create an account to join the conversation.
- usmanshahid
- Offline
- Senior Member
- Posts: 7
- Thank you received: 0
1. I can read the values from QuickOPC Kit DA Server using the EasyOPC.NET Demo Application remotely by clicking on the `Read item` button.
2. I cannot read values from IntelliMAX.OPC.DAServer.1 using the EasyOPC.NET Demo Application remotely by clicking on the `Read item` button. The Exception box shows: `Exception from HRESULT: 0x80040200`
3. I cannot subscribe to the QuickOPC Kit DA Server items from the demo application by clicking on the `Subscribe Item` button, the Exception box shows `Access is denied`.
4. I cannot subscribe to the IntelliMAX.OPC.DAServer.1 items from the demo application by clicking on the `Subscribe Item` button, the Exception box shows nothing but there is no changing value in the Value box.
And like I specified before, I've also tried Visual OPCTest Tracer DEMO to subscribe to both i.e. QuickOPC Kit Event Server and another server I'm running (IntelliMAX.OPC.AlarmServer.1). The demo application seems to easily subscribe and fetch the alarms from both IntelliMAX.OPC.AlarmServer.1 and QuickOPC Kit Event Server:
I should also specify that it's only the remote subscription that's problematic. Subscription to servers running on the same machine works fine.
Please Log in or Create an account to join the conversation.
I have asked because it is common that Windows Service, running under a specific account, does not work "out of the box" even when other OPC applications do work - because the DCOM configuration has to be different.
But I understand that in your case, the console app behaves the same.
I am running out of options here. I still believe this has to with the DCOM configuration either in your system or its settings in the QuickOPC.
Have you attempted OPC Data Access from a QuickOPC application on the same computer to the same server computer, for example using one of the demo apps that comes with QuickOPC? And does that work?
Regards
Please Log in or Create an account to join the conversation.
- usmanshahid
- Offline
- Senior Member
- Posts: 7
- Thank you received: 0
1. A console application, I run it through a Command Prompt initiated in Administrator mode.
2. A Windows Service which runs under the "LocalSystem" account.
The firewall is disabled on both the source and the target machines.
The behavior for both of these is same.
Please Log in or Create an account to join the conversation.
What kind of application is your project please? (console app, Windows Forms, WPF, Windows Service, Web app, Web service, etc.)
Thank you
Please Log in or Create an account to join the conversation.
- usmanshahid
- Offline
- Senior Member
- Posts: 7
- Thank you received: 0
System.UnauthorizedAccessException: Access is denied
Please Log in or Create an account to join the conversation.
the problem might be 1) when the client is resolving the ProgID of the remote server using OPCEnum, or 2) later when it is trying to access the actual OPC Server.
In order to rule out #1, can you please replace
"OPCLabs.KitEventServer.2"
"{68BE808F-C895-47BD-A3F0-701CD7ABCB26}"
Please Log in or Create an account to join the conversation.
- usmanshahid
- Offline
- Senior Member
- Posts: 7
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Is there a way to obtain (a demo version of) the OPC Server, for us to investigate here?
Regards
Please Log in or Create an account to join the conversation.
Please try following (6) combinations at the beginning of your program, to see if any of them works. Note that the settings can only be made once in the process lifetime, before any OPC operation is attempted; you cannot put the combinations into the same program and try to test them all in a sequence.
EasyAEClient.SharedParameters.ClientParameters.UseCustomSecurity = false;
EasyAEClient.SharedParameters.ClientParameters.TurnOffActivationSecurity = false;
EasyAEClient.SharedParameters.ClientParameters.UseCustomSecurity = false;
EasyAEClient.SharedParameters.ClientParameters.TurnOffActivationSecurity = true;
EasyAEClient.SharedParameters.ClientParameters.UseCustomSecurity = true;
EasyAEClient.SharedParameters.ClientParameters.TurnOffActivationSecurity = false;
EasyAEClient.SharedParameters.ClientParameters.TurnOffCallSecurity = false;
EasyAEClient.SharedParameters.ClientParameters.UseCustomSecurity = true;
EasyAEClient.SharedParameters.ClientParameters.TurnOffActivationSecurity = false;
EasyAEClient.SharedParameters.ClientParameters.TurnOffCallSecurity = true;
EasyAEClient.SharedParameters.ClientParameters.UseCustomSecurity = true;
EasyAEClient.SharedParameters.ClientParameters.TurnOffActivationSecurity = true;
EasyAEClient.SharedParameters.ClientParameters.TurnOffCallSecurity = false;
EasyAEClient.SharedParameters.ClientParameters.UseCustomSecurity = true;
EasyAEClient.SharedParameters.ClientParameters.TurnOffActivationSecurity = true;
EasyAEClient.SharedParameters.ClientParameters.TurnOffCallSecurity = true;
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- OPC Alarms&Events
- issues when using the QuickOPC A&E Client to access and subscribe to an OPC A&E Server on a remote machine