- Posts: 14
- 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-UA in .NET
- Reading, Writing, Subscriptions
- BadSecureChannelClosed - error
BadSecureChannelClosed - error
I've found it
Kind regards,
Software Engineer Team
UK Power Reserve Ltd
6th Floor, Radcliffe House, Blenheim Court, Solihull, B91 2AA.
Please Log in or Create an account to join the conversation.
If you have a code that does not compile, please post it here...
Please Log in or Create an account to join the conversation.
EasyUAClient.AdaptableParameters.Session.HoldPeriod = 60*1000;
which using should I include in order to get AdaptableParameters?
Kind regards,
Software Engineer Team
UK Power Reserve Ltd
6th Floor, Radcliffe House, Blenheim Court, Solihull, B91 2AA.
Please Log in or Create an account to join the conversation.
I will use you advice and try with longer holdPeriod and then check if it helped.
Best regards
Kind regards,
Software Engineer Team
UK Power Reserve Ltd
6th Floor, Radcliffe House, Blenheim Court, Solihull, B91 2AA.
Please Log in or Create an account to join the conversation.
But, I have a suggestion: If you are just doing periodic reads and no subscriptions, increase the hold period, i.e. the period for which the QuickOPC (EasyUAClient) keeps the connection to the server open after use. The default is fairly short (5000 milliseconds = 5 seconds), therefore if you are initiating a read every 10 seconds, it is likely that the connection is getting closed (always or sometimes) in between the reads. That is quite inefficient anyway.
Assuming that you are *not* setting the Isolated property of EasyUAClient to 'true', try this - before making any OPC operations:
EasyUAClient.AdaptableParameters.Session.HoldPeriod = 60*1000;
It will increase the hold period to 1 minute, and the connectin should therefore stay open all the time you are doing the periodic reads.
Best regards
Please Log in or Create an account to join the conversation.
Kind regards,
Software Engineer Team
UK Power Reserve Ltd
6th Floor, Radcliffe House, Blenheim Court, Solihull, B91 2AA.
Please Log in or Create an account to join the conversation.
?check the diagnostics on the server side, if possible.
Regards
Please Log in or Create an account to join the conversation.
I am getting following error:
OPC-UA service result - BadSecureChannelClosed.
---- SERVICE RESULT ----
StatusCode: {BadSecureChannelClosed} = 0x80860000 (2156265472)
-----
StatusCode: {BadSecureChannelClosed} = 0x80860000 (2156265472)
---- REMARKS ----
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.
A possible cause of this error could also be that the OPC-UA server is not running, or that it has rejected the connection due to security reasons.
My app is simple UA client reading manually 1 value from OPC Server. I need to read the value exactly e.g. 10sec. (I know that there is better option with subscription - upgrade of the app in progress)
After random time - sometimes 1day sometimes one week or few hours after rebooting of the app (running as a service) I am starting to get this error.
What could be possible causes? There is no security right now between client and the server. Server is KepServerEX5.18
Best regards
Mateusz Siatrak
Kind regards,
Software Engineer Team
UK Power Reserve Ltd
6th Floor, Radcliffe House, Blenheim Court, Solihull, B91 2AA.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Reading, Writing, Subscriptions
- BadSecureChannelClosed - error