Renci.SshNet.ScpClient Download : Index was outside the bounds of the array.

Oct 15, 2013 at 6:32 AM
Edited Oct 15, 2013 at 6:33 AM
Hi All,

i am downloading a file by using the "Renci.SshNet.dll". Its giving the below exception

" Index was outside the bounds of the array."

The stack trace is below

at Renci.SshNet.ScpClient.ReadString(Stream stream)
at Renci.SshNet.ScpClient.InternalDownload(ChannelSession channel, Stream input, FileSystemInfo fileSystemInfo)
at Renci.SshNet.ScpClient.Download(String directoryName, DirectoryInfo directoryInfo)

Can anyone knows why this exception is caused.

Thanks,
Kiran