Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in .NET FTP by (200 points)
Hi there
i download th edtftpnet 1.2.4
I have this problem
I use an ftp server intalled on windows ce 4.20
and when I call the getfileinfos() command with ftpconnection, it returns nothing
I connected with commadline kai h saw that it supports all the commands of an widows ftp server
I'm using the same code in a ftp server with installed on windows xp and works fine
can anyone help me ?

p.s
sorry for my bad english
I'm from Greece

5 Answers

0 votes
by (162k points)
Greece is a beautiful country that I had a very pleasant visit to a few months ago :)

In command-line, type 'debug' and then 'dir', and post the resulting output here.
0 votes
by (200 points)
This the output of debug an then dir
I forgot to mention tha I login as anonymous user

ftp> debug
Debugging On .
ftp> dir
---> PORT 192,168,251,100,8,151
200 Command okay.
---> LIST
150 File status okay; about to open data connection.
04-23-07 12:20 49152 ACSParcels_CE.exe
04-23-07 15:13 117 ACSParcelsCfg.txt
04-15-07 19:19 1078 LABELS.ICO
04-14-07 18:36 57344 Nuwa.dll
04-16-07 14:05 <DIR> Logs
10-04-02 21:42 9216 vsd_setup.dll
04-15-07 19:23 40960 ACSParcels_CE_sos.exe
226 Closing data connection.
ftp: 363 bytes received in 0,38Seconds 0,97Kbytes/sec.
ftp>


Greece always offer pleasant visits
0 votes
by (162k points)
That should work. Use GetFileInfos("").

If that doesn't work, post a log file.
0 votes
by (200 points)
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
0 votes
by (162k points)
The reason for the failure is that the DateTime string presented in Windows CE is different from other windows platforms.

If you email us we'll give you a build that should fix this - support at enterprisedt dot com.

DEBUG [FTPClient] 3 Μαϊ 2007 13:29:50.671 : -->04-23-07 12:20 49152 ACSParcels_CE.exe

---

DEBUG [FTPFileFactory] 3 Μαϊ 2007 13:29:51.078 : String was not recognized as a valid DateTime.

Categories

...