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.

BadSecureChannelClosed - error

More
19 Apr 2016 17:46 #4000 by UKPR
Replied by UKPR on topic BadSecureChannelClosed - error
I just thought that this property is property of the client that I've already initiated. Its the property of the type it self.

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.

More
19 Apr 2016 17:25 #3998 by support
I do not quite understand the question, because if you can get to EasyUAClient, you should also be able to get to its AdaptableParameters property.

If you have a code that does not compile, please post it here...

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

More
19 Apr 2016 14:40 #3996 by UKPR
Replied by UKPR on topic BadSecureChannelClosed - error

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.

More
15 Apr 2016 12:18 #3990 by UKPR
Replied by UKPR on topic BadSecureChannelClosed - error
No - we are not using Isolated property.

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.

More
13 Apr 2016 08:35 #3987 by support
It appears that the connection cannot be established at all. For the reason, we would probably have to employ a low-level diagnostics tools like WireShark.

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.

More
12 Apr 2016 13:46 #3985 by UKPR
Replied by UKPR on topic BadSecureChannelClosed - error
There is no info in KepSerwer log for that time

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.

More
12 Apr 2016 13:32 #3984 by support
Have you followed the hint in the error message,

check the diagnostics on the server side, if possible.

?

Regards

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

More
12 Apr 2016 09:20 #3983 by UKPR
Hello QuickOPC team,

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.

Moderators: support
Time to create page: 0.064 seconds