Home Forums .NET libraries Xceed SFTP/FTP for .NET Invalid reply format to PASV command

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21440 |

    Hello. We are trying out your Xceed FTP component, but have stumbled upon a nasty error.

    To connect to the FTP server we

    – use Passive

    – Authenticate with AuthenticationMethod.Tls, VerificationFlags.None, null

    – use HTTP proxy without username and password

    FTP login is successful, the FtpClient object is Connected.

    But when I try to call client.GetFolderContents(); I get the response “Invalid reply format to PASV command”

    NOTE: Using FileZilla FTP Client works as a charm.

    Thanks.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Andris (had 815 views)

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi Andris,

     

    Can you set the TraceWriter property so the communication with the FTP server is
    logged. Then, can you send us the log of the session that is giving you problems
    so we can analyze it?

    Example (C#):

    FtpClient myFtpClient = new
    FtpClient();
    myFtpClient.TraceWriter = new StreamWriter(
    @”D:\Log\XceedFtp.log”, true );

    or

    FtpConnection myFtpConnection =
    new FtpConnection( ftpServer );
    myFtpConnection.TraceWriter = new
    StreamWriter( @”D:\Log\XceedFtp.log”, true );

    Example
    (VB.NET):

    Dim myFtpClient As New FtpClient
    myFtpClient.TraceWriter =
    New StreamWriter(“D:\Log\XceedFtp.log”, True)

    or

    Dim
    myFtpConnection As New FtpConnection( ftpServer )
    myFtpConnection.TraceWriter
    = New StreamWriter(“D:\Log\XceedFtp.log”, True)

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Fawzi [Xceed] (had 962 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.