0 votes
by (120 points)
edited

Why would I be getting an "Permission denied (550)" messsage when trying to upload a file? I know the FTP server is setup correctly as I am able to upload via the sample code and an FTP client using the same server and credentials. I am basically just using the sample upload code.

local = File.OpenRead(strFileLocalPath) _ftp.Connect(strFTPHost, strFTPPort) _ftp.Login(strFTPUsername, strFTPPassword) _ftp.PutFile(local, strFileRemotePath, _remoteOffset, -1)

Applies to: Rebex FTP/SSL
by (13.3k points)
Being able to upload the file using the sample and not being able to upload it via own code looks really strange. Is it possible to edit your question and add the log produced using the LogWriter property as described at http://www.rebex.net/kb/logging.aspx ? It would help us determine what's going on. Alternatively you can send the log to support@rebex.net

1 Answer

0 votes
by (140 points)
edited

I found my problem - i was passing some invalid paths to the strFileRemotePath - it needs to be the path and file name.

...