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?

asked 05 Aug '11, 04:50

Tim's gravatar image

Tim
151
accept rate: 0%

edited 11 Oct '11, 17:11

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310

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.

(05 Aug '11, 12:18) Lukas Matyska ♦♦

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.

link

answered 19 Oct '11, 10:35

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

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:

×152
×15
×3

Asked: 05 Aug '11, 04:50

Seen: 521 times

Last updated: 19 Oct '11, 10:35