- Thank you received: 0
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
- Connections, Reconnections, COM/DCOM
- Access is denied error
Access is denied error
- gmessoroch
- Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- gmessoroch
- Topic Author
- Offline
- New Member
- Thank you received: 0
2. Following your suggestion, I've changed the log-in user to of both service for the same user as my client application and with that configuration, both service successfully start after a connection attempt. From that test, I conclude from that the problem is more at the Access permissions than Lauch permissions. As before, once connected I'm able to excute read/write queries to the Matrikon server and I received an access is Denied error for the AXS4ICCP server.
Thanks.
Please Log in or Create an account to join the conversation.
1. Do you "pre-start" the service, or does is it started by first OPC client connected to it? If you don't start the service upfront, does connection attempt from your application at least start the service, or is the service still stopped? (Reason for this questions: There are two sets of permissions, Launch permissions and Access permissions. I am trying to determine which ones are causing the problem at first).
2. Have you tried to run the service under the same account as the Matrikon OPC server is running (or are you already doing it that way)? I understand that this may not be the best setup for production, and I also understand that other clients can connect to the service already, but I think it is a setup worth experimenting with, to gain a but more knowledge.
Kind regards,
ZZ
Please Log in or Create an account to join the conversation.
- gmessoroch
- Topic Author
- Offline
- New Member
- Thank you received: 0
Yes, the Authenticafication Level in DCOMCNFG properties for the AXS4ICCP server is connect.
The DCOM setting for both the Matrikon and AXS4ICCP server are identical. The only discrepencies I see between both is the fact that there is two entries for AXS4ICCP server in DCOM setting. One for when the OPC is running as a service (my case) and a second one when it's running in a standalone mode.
Both OPC servers are on the same remote host, therefore they share the same server DCOM config (My computer - properties in DCOMCNFG).
Thanks
Please Log in or Create an account to join the conversation.
Sometimes there are problems similar to yours, and they are difficult to resolve because we never managed to reproduce the same on our side.
This said, here are some questions and options:
- Can you please test whether BrowseLeaves, BrowseBranches or BrowseNodes call works? (the reason I am asking is because there some internal difference from how Reads and Writes work). Or, is there *anything* that works for that particular remote OPC server, or do all operations you have tried result in "Access denied"?
- What is the Authentication Level in DCOMCNFG properties for AXS4ICCP server (on the General tab)? If it is not Connect, have you tested with setting it to Connect?
- Have you truly compared the DCOM settings (in DCOMCNFG) for the Matrikon OPC server (that works) and AXS4ICCP (which doesn't) to every little detail? On the General tab, is the Authentication level the same? Is the information on Identity tab the same? Is the information on the Security tab the same, including the precise access control lists for any setting that is set to Custom?
- If the Matrikon OPC Server is on a different machine from where the AXS4ICCP server is, are the DCOM default on these two machines precisely the same? (right-click on the "My Computer" node in DCOMCNFG, select Properties). Is the information on the "Default Properties" tab same on both computers? Are the user accounts under the 4 options on the "COM Security" tab same on both computers?
Best regards,
Zbynek Zahradnik
Please Log in or Create an account to join the conversation.
- gmessoroch
- Topic Author
- Offline
- New Member
- Thank you received: 0
The problem I'm experiencing is with a simple Win Form application making direct calls to a remote OPC server, so I'm executing the executable from my own account, inside VS2010 or as standalone program.
The facts that:
1) The exact same code is able to execute remote access to another type of OPC server ( Matrikon's OPC server)
2) The code modified with another OPC access library ( Kepware) to the remote AXS4ICCP server
both works perfectly, tend to prove that it's not a DCOM related issue. The only issue I'm having is with the exact combinaison of OPC Labs + remote access to AXS4ICCP OPC (It also work when the OPC server is local).
Any others suggestions?
Please Log in or Create an account to join the conversation.
My intent was to try and be helpful, not to say anything to discourage you. My apologies if I did or said anything to lead you to think that I was part of OPC Labs. I'm just another member of the user community. In other groups that I belong to, we try to help each other. Maybe that is not how OPC Labs forums operate...
So maybe you should wait until somebody from OPC Labs answers your question. You can identify them by "OPC Labs" appearing in their name!
Please Log in or Create an account to join the conversation.
Your client code that uses QuickOPC is running in aWindows service, correct?
If so, what is the user account the client service is running under? Have you tried - just for the test - set the service to run under your account (the interactive account that you use when you run the UI-based clients that work...)? If switching the service account in this way helps, we will know for sure that you just need to tweak DCOM and the accounts/permissions again.
Zbynek Zahradnik
Please Log in or Create an account to join the conversation.
I will post our reply soon.
Zbynek Zahradnik
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Connections, Reconnections, COM/DCOM
- Access is denied error