Version: __2013.4.7.0__
Hey everybody,
I am sporadically getting the following exception while trying to disconnect SftpClient.
__System.ArgumentOutOfRangeException__: Specified argument was out of the range of valid values.
Parameter name: length
at Renci.SshNet.Session.WaitHandle(WaitHandle waitHandle)
at Renci.SshNet.Channels.Channel.Close(Boolean wait)
at Renci.SshNet.Channels.ChannelSession.Close(Boolean wait)
at Renci.SshNet.Channels.Channel.Close()
at Renci.SshNet.Sftp.SubsystemSession.Disconnect()
at Renci.SshNet.SftpClient.OnDisconnecting()
at Renci.SshNet.BaseClient.__Disconnect()__
Code Snippet:
```
if (sftpClient.IsConnected)
sftpClient.Disconnect();
```
Any idea why ?
Comments: ** Comment from web user: drieseng **
Hey everybody,
I am sporadically getting the following exception while trying to disconnect SftpClient.
__System.ArgumentOutOfRangeException__: Specified argument was out of the range of valid values.
Parameter name: length
at Renci.SshNet.Session.WaitHandle(WaitHandle waitHandle)
at Renci.SshNet.Channels.Channel.Close(Boolean wait)
at Renci.SshNet.Channels.ChannelSession.Close(Boolean wait)
at Renci.SshNet.Channels.Channel.Close()
at Renci.SshNet.Sftp.SubsystemSession.Disconnect()
at Renci.SshNet.SftpClient.OnDisconnecting()
at Renci.SshNet.BaseClient.__Disconnect()__
Code Snippet:
```
if (sftpClient.IsConnected)
sftpClient.Disconnect();
```
Any idea why ?
Comments: ** Comment from web user: drieseng **
Lets of fixes were done in this area since v2013.4.7.0.
Please try using the latest beta (2014.4.6-beta1) and let us know if this fixes the issue for you.
Thanks,
Gert