This is an OLD issue that have not been solved yet. Could you please tell me the status of this issue? I need to report to my team and I'm between ComponentPro and edtFtpNetPro right now. This is the only issue prevent us to use this library, but I'm about giving up.
I am in the process of testing the sftp component. Works fine but I'm having a strange problem when downloading a file to a file stream.
sftpClient.DownloadFile(fileName, destinationFile); //string to string. This works fine
using (var stream = File.Open(destinationFile, System.IO.FileMode.Create,System.IO.FileAccess.Write, System.IO.FileShare.None))
results in an exception "Object reference not set to an instance of an object.".
The stream is created fine but shows 0 b after the exception, of course.
If this serves as any help, uploading a file seems to work fine.
using (var stream = File.Open(source, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.None))