Exception Message that is blank quotes

Jan 3, 2013 at 12:02 AM

I am attempting to use the sftpclient 's method UploadFile and it is returning and exception of "".

I can't find the root cause of this issue.

I have tried changing directories and pushing the file but nothing seems to work.

The stack trace has the following in it (omitting my project class and line):

   at Renci.SshNet.Sftp.SubsystemSession.WaitHandle(WaitHandle waitHandle, TimeSpan operationTimeout)   at Renci.SshNet.Sftp.SftpSession.RequestOpen(String path, Flags flags, Boolean nullOnError)   at Renci.SshNet.SftpClient.InternalUploadFile(Stream input, String path, SftpUploadAsyncResult asynchResult, Flags flags)   at Renci.SshNet.SftpClient.UploadFile(Stream input, String path, Boolean canOverride)   at Renci.SshNet.SftpClient.UploadFile(Stream input, String path)...

Any suggestions would be appreciated.

Coordinator
Jan 3, 2013 at 9:28 PM

The reason the error message is blank is because thats what I receive from the server, so I simply wrapping it into exception and throwing it back to the user.

Unfortunately I dont have any advise on what might be wrong, the only thing you can try to look into is the ErrorCode, I am taking it from the server too, and see if it can help you.

 

Thanks,

Oleg