Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.1k views
in .NET FTP by (320 points)
I've come across a problem where the SFTP server I'm sending files to does not permit read access. Using a client like WinSCP or Filezilla I'm able to change into the directory and upload files despite the error, however, wen using eftFTPnet/Pro (.net) each time I've tried to change directory I get "Permission denied (code=3)" and the connection reverts to its original folder.

For example:

try
{
_FTPConnection.ChangeWorkingDirectory("/incoming");
}
catch
{
} 


causes a SFTPException to be thrown with the above message. I've tried using ServerDirectory.

This is with version 7.1.1.20 with a build date of 2010/04/16.

Any help with this would be appreciated.

1 Answer

0 votes
by (162k points)
Try uploading the file to "/incoming/filename" rather than changing into the directory.

A log file would tell us more. Does FZ get an error message listing the directory?

Categories

...