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.

about : BadSessionIdInvalid

More
16 Apr 2025 08:57 #13550 by support
Replied by support on topic about : BadSessionIdInvalid
 
Hello.

Do you actually get any error/problem in your app? If so, please describe which method or event throws the exception or returns it, and include full text of the exception message, and if there is an .InnerException, then the same for the inner exception, recursively.

Or, are you just investigating the meaning/cause of the log entries - but without seeing a particular error in the code itself?

Regards
 

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

More
15 Apr 2025 10:43 #13549 by xpycy001
Dear  Support:
In my client.exe , found reconnect error : BadSessionIdInvalid ,EasyUaClient base setting :

1 EasyUAClient.SharedParameters.EngineParameters.ReconnectionPeriod =300 *1000 ( 300seconds )
2 EasyUAClient.AdaptableParameters.SessionParameters.ServerShutdownRetrialDelay =300 *1000 ( 300seconds )
3 EasyUAClient.AdaptableParameters.SessionParameters.SessionConnectTimeout = 60*1000  (60 seconds)

EasyUAClientOnLogEntry-Trace .log  content : 

01:02:16.957,EvId:4051,Warning The OPC-UA client session with connect sequence number 1937 on endpoint URL "opc.tcp://10.31.199.228:4840" has encountered a publish error with code 0x80250000 for subscription ID 0 and sequence number 0. The error might be from the Publish or the Republish service. Further publish errors with this code on this session will not be logged. 
   Service result: BadSessionIdInvalid 'BadSessionIdInvalid'.
other same log at : 01:07:16.955,EvId:4051 .....Service result: BadSessionIdInvalid 'BadSessionIdInvalid'.
....
01:12:16.954 ,EvId:4051 .....Service result: BadSessionIdInvalid 'BadSessionIdInvalid'.
....
01:17:16.958,EvId:4051 .....Service result: BadSessionIdInvalid 'BadSessionIdInvalid'.
..
01:22:16.965,EvId:4051 .....Service result: BadSessionIdInvalid 'BadSessionIdInvalid'.

look forward to your reply

Simon 
2025.04.15 18:43
Attachments:

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

Moderators: supportvaclav.zaloudek
Time to create page: 0.136 seconds