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.

× If you are developing in .NET, but are using the OPC-UA (OPC Unified Architecture), please post in the QuickOPC-UA category instead.

Getting 0x80070005 Error with OPC DA

More
19 Dec 2019 07:45 #8101 by support
Hello,

getting this error (which stands for "Access is denied") is not uncommon when OPC over DCOM is used. It usually has to do with permission settings and DCOM configuration.

But before we provide some hints in that respect, I am somewhat confused by the fact that you mention the ability to specify username/password with some other library. To me, that would be very unusual in OPC Classic world. In everything I have seen so far, the DCOM (OPC) calls are made with the identity of the process that hosts the client code, and therefore no username/password is used. Can you perhaps tell me which Java library are you a=referring to and which parameters (or code sample)? I want to determine whether these parameters were not for something else.

Regards

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

More
19 Dec 2019 07:33 #8099 by maged.emara
We are trying to read data from OPC server hosted on separate server but in the same network, we're facing issue access denied issue (details below), The QuickOpc doesn't provide a way to pass username/password of the server (before we used Java-based library which allows that) we found some posts in QuickOPC online forums which mention that any credentials or access should be set and configured from outside the program.

Can you help me to find out what exactly should be configure outside the program and whether specific account needs to be created/configured on the client machine?

Error :
Error :An OPC operation failure with error code -2147024891 (0x80070005) occurred, originating from 'OpcLabs.EasyOpcRaw.DataAccess.RawEasyDAClient' and with depth of 1. The inner exception contains details about the problem.

Code snippet:
EasyDAClient Client = new EasyDAClient();
EasyDAClient.SharedParameters.ClientParameters.UseCustomSecurity = false;
EasyDAClient.SharedParameters.ClientParameters.TurnOffActivationSecurity = true;
EasyDAClient.SharedParameters.ClientParameters.TurnOffCallSecurity = true;

//no paramters for passing the credentials, only hostname and progid
var resp = Client.ReadItem(new ServerDescriptor(myConfig["HOSTNAME"], myConfig["PROGID"]), new DAItemDescriptor(a));

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

Moderators: support
Time to create page: 0.046 seconds