This project is read-only.

An established connection was aborted by the software in your host machine

Sep 12, 2013 at 6:13 PM
Edited Sep 12, 2013 at 7:43 PM
Can anyone shed some light on this issue? Thanks in advance

Renci.SshNet.Common.SshConnectionException: An established connection was aborted by the software in your host machine.
at Renci.SshNet.Session.WaitHandle(WaitHandle waitHandle) in *\Renci.SshNet\Session.cs:line 640
at Renci.SshNet.Channels.Channel.Close(Boolean wait) in *\Renci.SshNet\Channels\Channel.cs:line 518
at Renci.SshNet.Channels.ChannelSession.Close(Boolean wait) in *\Renci.SshNet\Channels\ChannelSession.cs:line 106
at Renci.SshNet.Channels.Channel.Close() in *\Renci.SshNet\Channels\Channel.cs:line 223
at Renci.SshNet.Sftp.SubsystemSession.Disconnect() in *\Renci.SshNet\SubsystemSession.cs:line 106
at Renci.SshNet.SftpClient.OnDisconnecting() in *\Renci.SshNet\SftpClient.cs:line 1563
at Renci.SshNet.BaseClient.Disconnect() in *\Renci.SshNet\BaseClient.cs:line 130
at MichelinPortal._Default.SendFile(String filePath, String fileName) in *\Default.aspx.cs:line 394

Code Snipit (C#):

Stream input = File.OpenRead(filePath);
var connectionInfo = new PasswordConnectionInfo(RemoteHost, RemoteUserName, RemotePassWord);
SftpClient test = new SftpClient(connectionInfo);
Sep 28, 2013 at 12:40 AM
this is related to this issue.

When I used the published binary, I don't get the exception. However, when I use the binary compiling from the source, I would get the exception.