Invalid number of arguments (501).

0 votes
asked Jun 16, 2010 by AT (120 points)
edited Aug 10, 2010

i can connect and download multiple file put when i try to upload it get "Invalid number of arguments (501)."

client.PutFiles("d:\tahacash*", "/", FtpBatchTransferOptions.Default, FtpActionOnExistingFiles.OverwriteDifferentSize)

anyone knows why ?

Applies to: Rebex FTP/SSL
commented Jun 17, 2010 by Lukas Pokorny (128,250 points)
This looks like one of the FTP commands used by the PutFiles method was not supported by the FTP server with the number of arguments we passed to it. Please use the Ftp object's LogWriter property to create a communication log (as described at and either edit your question to include it (the part showing the "501" error and several lines before it should be suffucient) or mail it to - we should then be able to tell what is going on, and hopefully how to solve it as well.

1 Answer

0 votes
answered Jun 21, 2010 by Lukas Pokorny (128,250 points)

Is there any news on this? Have you been able to solve this or produce the communication log?