Permission denied (550) messsage when trying to upload a file

0 votes
asked Apr 23, 2010 by Scott Lezberg 1 (120 points)
edited Mar 23, 2011

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
commented Apr 23, 2010 by Martin Vobr (12,940 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
answered Apr 23, 2010 by Scott Lezberg 2 (140 points)
edited Apr 23, 2010

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

...