Home Forums .NET libraries Xceed SFTP/FTP for .NET sendCustomCommand error

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

    When I tried to send custom command to the FTP server – ls or lcd, it failed with the following error

    error stack:
    Xceed.Ftp.FtpReplyException: Unknown command. (reply code 500)
    at Xceed.Ftp.Engine.CustomFtpCommand.ProcessFinalReply(FtpEngine engine, FtpReply reply)
    at Xceed.Ftp.Engine.AtomicFtpCommand.Execute(FtpEngine engine)
    at Xceed.Ftp.Engine.FtpEngine.ExecuteCommand(FtpCommand command)
    at Xceed.Ftp.FtpClient.SendCustomCommand(String command)

    error reported in ftpoject trace writer
    < 220
    > USER XXX
    < 331 Please specify the password.
    > PASS XXX
    < 230 Login successful. Have fun.
    > ls
    < 500 Unknown command.
    > QUIT

    How to fix this?

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

    User (Old forums)
    Member
    Post count: 23064

    Have you tried your command from another application, or from the ftp command prompt? This reply means that the server does not recognize the command, either because it does not support it, or because the syntax is wrong.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 322 views)

    User (Old forums)
    Member
    Post count: 23064

    Yes. Confirming those commands are working on the FTP.

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

    User (Old forums)
    Member
    Post count: 23064

    I suggest that you send a request to <a href=”mailto:support@xceedsoft.com”>support</a>, so we can investigate the issue further.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 4545 views)

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