The session.Connect function generates this exception.
Code: Select all
EndpointDescription session_description = new EndpointDescription() { EndpointUrl = l_url, SecurityMode = MessageSecurityMode.None, TransportProfileUri = "http://opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary" };
RequestSettings settings = new RequestSettings() { OperationTimeout = 10000 };
equipmentTypeObject.m_session.AutomaticReconnect = true;
equipmentTypeObject.m_session.Connect(session_description, RetryInitialConnect.Yes, settings);
Code: Select all
catch (Exception ex)
{
if (ex == null)
{
equipmentTypeObject.m_session.Disconnect();
equipmentTypeObject.m_session.Cache.Clear();
equipmentTypeObject.m_session = new Session();
return error.SESSION_BROKEN;
}
return error.SERVER_CONNECTION_FAILED;
}
Neither my own log(because the exception is null) nor the UA logs in the appdata provide any feedback.
this is the logging from the UA logs. The disconnect/connection failure started @11:12:16:
Code: Select all
11:15.50|0016|01|4|TCP CHANNEL 50266: Attempting Renew Token Now: TokenId=4
11:15.57|0054|01|4|TCP CHANNEL 143919: Attempting Renew Token Now: TokenId=4
11:16.06|0016|01|4|TCP CHANNEL 104778: Attempting Renew Token Now: TokenId=4
11:16.15|0016|01|4|TCP CHANNEL 95352: Attempting Renew Token Now: TokenId=4
11:16.23|0030|01|4|TCP CHANNEL 102581: Attempting Renew Token Now: TokenId=4
11:22.00|0030|01|4|TCP CHANNEL 2: Attempting Renew Token Now: TokenId=4
Any ideas what might be the issue here?
I guess there is a bug in the library somewhere as there is a missing exception object!
the version im currently using: 2.4.0 (BINARY Edition)