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.

Status is BadNotReadable when connecting to a UA server that requires user+pass

More
29 Jul 2022 10:07 #11071 by support
Hello.
The code looks correct.

Is there any other OPC UA client that can connect using the same username/password, and read the same node without getting the error? Unless there is a claim that other OPC UA client can do it but QuickOPC cannot, working with logs or communication captures is probably not going to reveal much useful.

Quite likely, this is server configuration issue. If the server allows the user to connect with the credentials you provided (which it does), it is then up to the server to decide whether that user can be permitted to read the node or not. And it has decided that it is not permitted. We do not generate the BadNotReadable error on our side.

Best regards

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

More
29 Jul 2022 08:34 - 29 Jul 2022 10:02 #11070 by micham
Hi,

Yes. The username and password are supplied. See below.

 
localUser = server_properties.UA_Username
localPassword = server_properties.UA_Password
UA_Security_Annonymous = False
 
Dim gdsEndpointDescriptor As UAEndpointDescriptor =
New UAEndpointDescriptor(gServerNameURL) _
.WithUserNameIdentity(localUser, localPassword)
 
If gServerType = "UA" Then
Try
attributeData2 = easyUAClient1.Read(gdsEndpointDescriptor, szItemName)
Catch ex As UAException
exception = ex
End Try
End If
 


Is it possible for the OPC component to generate a log file so that we will have better understanding of what's going on?

Thanks.

Michael
Last edit: 29 Jul 2022 10:02 by support.

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

More
28 Jul 2022 13:56 #11069 by support
Hello.

Can you please clarify: Are you actually supplying the username+password to the server, or not?

When the server controls access to information based on the user's permission, then obviously not authenticating means that some information is not accessible.

Best regards

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

More
28 Jul 2022 13:23 #11068 by micham
Hi,

We are getting the "BadNotReadable" when trying to connect to a UA server that requires username + password.
We have tried it with the EasdyOPCUAdemo and the results is the same. Can you please advise?

Thank you.

Michael

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

Moderators: support
Time to create page: 0.078 seconds