0 votes
by (390 points)
edited

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
by (63.4k points)
edited

Can you please use the latest version (trial is enough) and send a communication log to support@rebex.net? 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
by (134k points)
edited

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.

...