- Posts: 22
- 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.
Connecting to a PLC with anonymous users turned off
Please Log in or Create an account to join the conversation.
I will try to setup a repro here with Kepware, and let you know the results. I will post here when I know more. Please allow some time for this.
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I do not see a problem in your code.
How do you trigger the reconnection, in your tests? E.g. by unplugging the network cable? Or by turning off the PLC? Etc...
And, you simply let you client program run? - Is it doing any subscriptions, or has no subscriptions but is doing periodic/one-time operations such as reads/writes?
Thank you
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The OPC UA server decides whether it allows username/password authentication without a certificate. Most servers do not allow it, for security reasons (without the certificate, the username/password appear unencrypted on the wire and can be eavesdropped on).
From the error you are getting, it looks like that your server either does not all allow username/password authentication without a certificate, or it may allow it but is not currently configured is such a way. Consult the server vendor/documentation if this can be changed.
To resolve the error *with* the use of certificates, you need to go to the server side and make it trust the client certificate from your app (QuickOPC has created one for you).
Best regards
Please Log in or Create an account to join the conversation.
I have also added a code snipit below.
x80860000: OPC UA service result - {BadSecureChannelClosed}. The secure channel has been closed. [...]
[Connection Event] Server is UNAVAILABLE - OPC UA service result - {BadSecureChannelClosed}. The secure channel has been closed.
+ The server may have rejected the connection because it does not trust the client (e.g. certificate problem); check the diagnostics on the server side, if possible.
+ The client method called (or event/callback invoked) was 'ServerConditionChanged'.
Please Log in or Create an account to join the conversation.
