Invalid Argument 550

0 votes
asked Aug 5, 2011 by Tim (390 points)
edited Oct 19, 2011

I am receiving a Invalid Argument 550 error when trying to

ftp.PutFile(_source, fileName);
where _source = "\\server\folder\pending\Test1.txt"; fileName = "Test1.txt";

Exception: Rebex.Net.FtpException
Message: \\mosprodsql1\loanport\pending\Test1.txt: Invalid argument (550).
Source: Rebex.Net.Ftp
   at Rebex.Net.Ftp.StartTransfer(String command, FtpStream stream, Int64 serverOffset, FtpTransferState transfer)
   at Rebex.Net.Ftp.UploadFile(String command, String remotePath, Stream sourceStream, Int64 remoteOffset, Int64 length)
   at Rebex.Net.Ftp.UploadFile(String command, String remotePath, String localPath, Int64 remoteOffset, Int64 localOffset, Int64 length)
   at Rebex.Net.Ftp.PutFile(String localPath, String remotePath)
   at ProcHost.LoanPortDataFileProcessing.FtpSendFile()

We are using version 2.5.2800.0 Rebex.Net.Ftp. Any thoughts?

Applies to: Rebex FTP/SSL
commented Aug 5, 2011 by Lukas Matyska (60,770 points)
edited Aug 5, 2011

Can you please use the latest version (trial is enough) and send a communication log to How the log can be produced is described here. We should then be able to tell what is going on, and hopefully how to solve it as well.

1 Answer

0 votes
answered Oct 19, 2011 by Lukas Pokorny (126,910 points)
edited Oct 19, 2011

This looks like the FTP server doesn't like this path format. This is actually quite common, because most FTP servers present a Unix-like filesystem to the FTP client and it's not possible to use Windows path, particularly those that refer to a different machine. Instead, you usually have to configure the FTP server to map the desired path into a virtual directory in its virtual Unix-like filesystem.