Hi ,
I can connect to a ftp server using Filezilla; please see below .
Status: Connection established, waiting for welcome message...
Response: 220 CMX TCP/IP - REMOTE FTP server (version 1.0) ready.
Command: USER admin
Response: 331 Password required for admin.
Command: PASS *****
Response: 230 User logged in, proceed.
Command: SYST
Response: 215 "UNIX"
Command: FEAT
Response: 502 Command not implemented.
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/admin" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (106,69,171,113,192,5)
Command: LIST
Response: 150 Opening BINARY mode data connection for '/admin'.
Response: 226 Transfer complete.
Status: Directory listing successful
But when I try the same with Rebex.FTP , I am seeing the FtpException message
I would like to mention that the ftp site I am trying to connect to starts with home ; home.example.com .
Login incorrect ( 530 )
Please find the code I have written below :-
Ftp ftpClient = new Ftp();
try
{
**// "home.example.com" is the FTP site I want to connect to
// I am able to connect "home.example.com" using FileZila**
ftpClient.Connect("home.example.com", 21);
ftpClient.Login("userid", "password");
// Do Something
if (ftpClient.IsConnected)
ftpClient.Disconnect();
}
catch (FtpException ex)
{
MessageBox.Show(ex.Message);
**// The above messagebox shows Login incorrect ( 530 )**
if(ftpClient.IsConnected)
ftpClient.Disconnect();
}
Please let me know where I am going wrong.
Sujay