Hi,
I'm having trouble with one exception in the dll that Renci is finalizing my application, menssage de error is "An established connection was aborted by the software in your host machine". With a little work I found that the error is in the SendKeepAlive in BaseClient.cs. When the connection is lost for some problem link such as the session is active and an error occurs when running SendKeepAlive. I put a error treatment (Try) to prevent my application finalized idevidamente, but the problem is in the treatment session that even continues to be active and terminated by sending the KeepAlive.
I'm having trouble with one exception in the dll that Renci is finalizing my application, menssage de error is "An established connection was aborted by the software in your host machine". With a little work I found that the error is in the SendKeepAlive in BaseClient.cs. When the connection is lost for some problem link such as the session is active and an error occurs when running SendKeepAlive. I put a error treatment (Try) to prevent my application finalized idevidamente, but the problem is in the treatment session that even continues to be active and terminated by sending the KeepAlive.
/// <summary>
/// Sends keep-alive message to the server.
/// </summary>
public void SendKeepAlive()
{
try
{
if (this.Session == null)
return;
if (!this.Session.IsConnected)
return;
this.Session.SendKeepAlive();
}
catch
{
}
}