this is my code
FTPConnection.LogLevel = LogLevel.All;
FTPConnection.LogFile = "./logfile";
FTPConnection ftpConnection = new FTPConnection();
FTPFile[] _FtpFiles = null;
ftpConnection.ServerAddress = ed_srv.Text;
ftpConnection.ServerPort = int.Parse(Ed_port.Text);
ftpConnection.UserName = Ed_Uname.Text;
ftpConnection.Password = Ed_pass.Text ;
ftpConnection.ConnectMode=FTPConnectMode.PASV ;
ftpConnection.Connect();
listBox1.Items.Add(ftpConnection.GetSystemType());
_FtpFiles = ftpConnection.GetFileInfos("");
int counter = 1;
foreach (FTPFile _file in _FtpFiles)
{
listBox1.Items.Add(counter.ToString());
listBox1.Items.Add(_file.Name + " " + _file.LastModified );
counter++;
}
this is the debug output
DEBUG [HostNameResolver] 3 Μαϊ 2007 13:29:49.953 : 192.168.251.70 resolved to 192.168.251.70
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.078 : Connecting to 192.168.251.70:21
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.546 : 220 Service ready for new user.
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.562 : ---> USER anonymous
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.562 : 331 Anonymous access allowed, send identity (e-mail name) as password.
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.562 : ---> PASS ********
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.562 : 230 User logged in, proceed.
DEBUG [FTPConnection] 3 Μαϊ 2007 13:29:50.562 : Successfully logged in
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.578 : ---> TYPE I
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.593 : 200 Command okay.
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.593 : ---> PWD
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.593 : 257 "/".
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.593 : ---> SYST
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.593 : 215 Windows_CE version 4.20.
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.625 : ---> SYST
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.625 : 215 Windows_CE version 4.20.
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.656 : ---> PASV
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.656 : 227 Entering Passive Mode (192,168,251,70,5,61).
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.656 : Server supplied address=192.168.251.70
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.656 : Server supplied port=1341
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.656 : Substituting server supplied IP (192.168.251.70) with remote host IP (192.168.251.70)
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.656 : NewPassiveDataSocket(192.168.251.70,1341)
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.656 : ---> LIST
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:50.656 : 125 Data connection already open; transfer starting.
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.671 : -->04-23-07 12:20 49152 ACSParcels_CE.exe
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.812 : -->04-23-07 15:13 117 ACSParcelsCfg.txt
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.812 : -->04-15-07 19:19 1078 LABELS.ICO
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.812 : -->04-14-07 18:36 57344 Nuwa.dll
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.812 : -->04-16-07 14:05 <DIR> Logs
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.812 : -->10-04-02 21:42 9216 vsd_setup.dll
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.812 : -->04-15-07 19:23 40960 ACSParcels_CE_sos.exe
DEBUG [FTPControlSocket] 3 Μαϊ 2007 13:29:51.031 : 226 Closing data connection.
DEBUG [FTPClient] 3 Μαϊ 2007 13:29:51.031 : Found 7 listing lines
DEBUG [FTPFileFactory] 3 Μαϊ 2007 13:29:51.031 : Parse() called using culture: Invariant Language (Invariant Country)
DEBUG [FTPFileFactory] 3 Μαϊ 2007 13:29:51.078 : String was not recognized as a valid DateTime.
INFO [FTPFileFactory] 3 Μαϊ 2007 13:29:51.078 : Rotated parser to Unix
I can see fro the log file that it returns the list
I have to mention tha this program run succesfuly on a 5 windows ftp server tha i test it
but not on a windows ce ftp server
Please help