This project is read-only.

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

Jul 12, 2013 at 4:02 PM
Edited Jul 12, 2013 at 4:20 PM
Hi,

I'm using the simple code below to upload a small file. Every time the file has uploaded and I disconnect I then get a SocketException error (An established connection was aborted by the software in your host machine).
 Using sftp As Renci.SshNet.SftpClient = New SftpClient("xxxxxx.com", "22", "username", "password"

            sftp.Connect()

            sftp.ChangeDirectory("/stuff/Import/")

            Dim fs As Stream = File.OpenRead("C:\Temp\test.csv")
            sftp.UploadFile(fs, "test.csv")

            sftp.Disconnect()

End Using
Sep 28, 2013 at 12:39 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.