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)

asked 23 Apr '10, 19:37

Scott%20Lezberg%201's gravatar image

Scott Lezberg 1
16
accept rate: 0%

edited 10 Aug '10, 13:26

Rebex%20KB's gravatar image

Rebex KB ♦♦
256312

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

(23 Apr '10, 20:13) Martin Vobr ♦♦

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

link

answered 24 Apr '10, 00:48

Scott%20Lezberg%202's gravatar image

Scott Lezberg 2
16
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×136
×3
×3

Asked: 23 Apr '10, 19:37

Seen: 786 times

Last updated: 23 Mar '11, 13:22