Subject: Filedownload error "Request rejected (550)" ?
Date: 2012-02-20 10:56:12
From: Jani Sillanpää
Source: filedownload-error-request-rejected-550
----------------------------------------------------------------------

Hi,

Im currently evaluating this software before purchace but Im having some difficulties with file download.

Ultimate ftp works fine with connect and put-commands but when I try to download a file it always gives error 550. Ive tested it with three different net clients / components based on ultimate ftp and compared the settings to old com-based ftp component which works.

It seems that problem with Ultimate FTP is that it always does LIST command before download and that LIST-command ends in 550 error. Is it possible to download files with Ultimate ftp without LIST command?

Here is the FTP log:
UltimateFtp Console Client Demo
UltimateFtp is available at http://www.componentpro.com

Ftp> connect xxx.xx.xxx.xxx
220-QTCP at TBANKRS.
220 Connection will close if idle more than 5 minutes.
User: anonymous
Password: ****
USER anonymous
331 Guest logon in process, send complete e-mail address as password.
PASS ****
230 Guest logon accepted, access restrictions apply.
FEAT
211-Feature listing follows:
 AUTH TLS
 CCC
 PBSZ
 PROT
211 End of feature listing.

Ftp> put ESIA
TYPE I
200 Representation type is binary IMAGE.
PASV
227 Entering Passive Mode (217,29,227,132,243,39).
STOR ESIA
150 Sending file to /FTPBLIFS/TCP450657/ESIA
226 File transfer completed successfully.

Ftp> get ESIP
SIZE ESIP
500 Subcommand SIZE not valid.
PWD
257 "/FTPBLIFS/TCP450657" is current directory.
TYPE A
200 Representation type is ASCII nonprint.
PASV
227 Entering Passive Mode (217,29,227,132,234,190).
LIST
550 Request rejected.
ERROR: Request rejected (550).

Ftp> active
Passive mode is off.
Ftp> get ESIP
PORT 10,10,14,71,242,25
200 PORT subcommand request successful.
LIST
550 Request rejected.
ERROR: Request rejected (550).

Callstack:
ComponentPro.Net.FtpException was unhandled
  Message="Request rejected (550)."
  Source="UltimateFtp"
  StackTrace:
       at ComponentPro.Net.Ftp.ḡ(Boolean Ṹ, String ਥ, ǒ ḻ, FileSystem ई, String Ṑ, Int64 ឫ, Int64 ḧ, TransferState ᡥ, String ᡙ, Stream Ṻ, Int64 ޣ, Stream Ḫ)
       at ComponentPro.Net.Ftp.ḣ(String ਥ, String Ṏ, Int64 ṏ, FileSystem ई, String Ṑ, Stream Ḫ, Int64 आ, Boolean ṑ, Boolean Ṓ)
       at ComponentPro.Net.Ftp.ListDirectory(String arguments, SearchCondition searchCondition, Boolean alwaysIncludeDirectories)
       at ComponentPro.Net.Ftp.ListDirectory(SearchCondition searchCondition)
       at ComponentPro.Net.Ftp.Ḡ(String ᡙ)
       at ComponentPro.Net.Ftp.GetFileLength(String remotePath)
       at ComponentPro.Net.Ftp.ResumeDownloadFile(String remotePath, String localPath, Int64& remoteSize)
       at ComponentPro.Net.Ftp.ResumeDownloadFile(String remotePath, String localPath)

EDIT:

I cant use the DownLoad-functions since they use LIST (which is not available on the ftp server) but I might be able to do a download using custom commands through ComponentPro.Net.Ftp.SendCommand-function. Im currently testing it.      

EDIT2:

After some digging I found this:

"public bool BuildDirectoryTreeBeforeTransfer
    Member of ComponentPro.IO.TransferOptions

Summary:
Gets or sets a boolean value indicating whether to retrieve directory structure before transferring files."

This is propably what I was looking for. Just have to set it to false in file download.

EDIT3:

Its still not working. It doesnt use the LIST-command anymore but it doesnt download the file either:
RESPONSE>  257 "/FTPBLIFS/TCP794758" is current directory.
CMD>       TYPE I
RESPONSE>  200 Representation type is binary IMAGE.
RESPONSE>  500 Subcommand SIZE not valid.
CMD>       MDTM .
RESPONSE>  500 Subcommand MDTM not valid.
CMD>       SIZE /FTPBLIFS/TCP794758/ESIP/ESIP
RESPONSE>  500 Subcommand SIZE not valid.
CMD>       CWD /FTPBLIFS/TCP794758/ESIP
RESPONSE>  550 Request rejected.
CMD>       CWD /FTPBLIFS/TCP794758
RESPONSE>  550 Request rejected.

I think ftp server supports only these minimum features:

TYPE - ASCII Non-print
MODE - Stream
STRUCTURE - File, Record
COMMANDS - 
USER, QUIT, PORT,TYPE, MODE, STRU,
    for the default values RETR, STOR, NOOP.




RESPONSE>  211-Feature listing follows:
RESPONSE>   AUTH TLS
RESPONSE>   CCC
RESPONSE>   PBSZ
RESPONSE>   PROT
RESPONSE>  211 End of feature listing



I should be able to download a file using them only them.
---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index