Mar 21, 2011 at 9:08 PM
Edited Mar 21, 2011 at 9:10 PM
Ok, this is what I could find.
Its not 100% what I wanted to find, but I hope it can get you closer than its getting me.
The systems calls a method called "BeginDownloadFile" in the SftpClient.cs file (line 312)
In this method, a call is made to GetCanocicalPath. It looks like this:
var fullPath = this._sftpSession.GetCanonicalPath(path);
This is where I am getting the error. I've tried to step as many times as I could to narrow it down. The acctuall error happens in Session.CS on the "write" method. (line 1430)
Sometimes the error will occur in the try loop, sometimes it makes it past that, but it always seems to get sent to the "rasieError" method, called from line 1440 on the "session.cs" file.
I cant find anymore infomration than that.
So, long story short, its having an issue getting the full path I guess?
I never make it past line 317 in sftpClient.cs (the var of fullPath never populates)
NOTE: I am using FreeSftpD as my SFTP server. This is all running on my local machine. I've tried changing the NTFS permissions with no luck.
If you have any tips of how I can find where this error is really getting thrown, I can try to help more. I dont understand how it makes it to the RaiseError method without hitting a catch.
I've stepped though this code over 50 times today to try and narrow it down.
Again, thanks for you help on this.