Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Error listing files
ralaez

From: Madrid, Spain
Posts: 13
Member Since: 05/06/03
posted May 6, 2003 7:16 AM

Hello,

I´m trying to use your application to download files from a ftp server. When I do this I got an error. The program does not see the filenames on the ftp server in a correct way. i.e.: the file on the server is named "Copia (2) de Copia de Prueba.log". The program sees this as "Copia de Prueba.log". See also the error message below.

Can you please inform me what seems to be the problem here?

Connecting ...
Connected to 192.168.20.125
Getting list...
File error (Copia de Prueba.log): Request: RETR Copia de Prueba.log Response: 550 Copia de Prueba.log: El sistema no puede hallar el archivo especificado. 
Succesfully retrieved 0 files.
Logging out ...
Connection closed
Process complete.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 6, 2003 12:31 PM

Please stop posting this message over and over. I have removed all of the duplicates and retained the original here:

http://support.dart.com/postings?topicid=3048&search=1

Please reply with more details. A log file of the session would be helpful.

ralaez

From: Madrid, Spain
Posts: 13
Member Since: 05/06/03
posted May 7, 2003 4:57 AM

OK. This is the log file of the session (the real file is named "Copia (2) de Copia de Prueba.log"):

<--- 220 lmiguel Microsoft FTP Service (Version 5.0).

---> USER anonymous

<--- 331 Anonymous access allowed, send identity (e-mail name) as password.

---> PASS anonymous

<--- 230 Anonymous user logged in.

---> PASV

<--- 227 Entering Passive Mode (192,168,20,125,5,76).

---> LIST

<--- 125 Data connection already open; Transfer starting.

<--- 226 Transfer complete.

---> TYPE I

<--- 200 Type set to I.

---> SIZE Copia de Prueba.log

<--- 550 Copia de Prueba.log: El sistema no puede hallar el archivo especificado.

---> PASV

<--- 227 Entering Passive Mode (192,168,20,125,5,78).

---> RETR Copia de Prueba.log

<--- 550 Copia de Prueba.log: El sistema no puede hallar el archivo especificado.

---> QUIT

<--- 221 
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 7, 2003 7:28 AM

This indicates that you tried to get a file called "Copia de Prueba.log" and the file does not exist. From what I can tell everything is working fine. I guess at this point you'll need to give us a site that we can use where we can see it for ourselves. If it's a public site, please post the info here. If not then send the info to support@dart.com with "Support Forum" in the subject.
ralaez

From: Madrid, Spain
Posts: 13
Member Since: 05/06/03
posted May 7, 2003 7:36 AM

The real name of the file is: "Copia (2) de Copia de Prueba.log" but when I try to download it the FTP sees this file like "Copia de Prueba.log" and it can't download the file.
If you want to see it yourself you can rename a file with name: "Copia (2) de Copia de Prueba.log" and other with name "Copy (2) of Copy of Prueba.log" and try to download this files with Dart ftp.

Tnks.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 7, 2003 8:47 AM

I had no problem doing what you said with our sample app. Please supply a site where the problem occurs.
ralaez

From: Madrid, Spain
Posts: 13
Member Since: 05/06/03
posted May 7, 2003 9:41 AM

I've tried with MGet.exe (sample for C# into Dart FTP component) and the problem persists.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 7, 2003 9:52 AM

What parameters did you use?

Please specify EXACTLY what was in each text box.

ralaez

From: Madrid, Spain
Posts: 13
Member Since: 05/06/03
posted May 7, 2003 9:53 AM

FTP Server
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 7, 2003 9:58 AM

I'm sorry, but I don't understand this response. Please explain.
ralaez

From: Madrid, Spain
Posts: 13
Member Since: 05/06/03
posted May 7, 2003 9:59 AM

Sorry for previous message.

FTP Server
 Host: lmiguel
 Port: 21
 User: anonymous
 Pass: anonymous

Remote Files: *.*
Local Directory: C:\documen\Borrar\FTP\

PASV: checked
Recursive: not checked
Restart: not checked

** and then push "Get Files" button
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 7, 2003 10:03 AM

I just did this and it works fine for me. I want to email you our latest DLL for you test with.

Are you using FTP or SecureFTP?

ralaez

From: Madrid, Spain
Posts: 13
Member Since: 05/06/03
posted May 7, 2003 10:16 AM

I'm using FTP. Please send me latest DLL to: ralaez@pandasoftware.es

*** Most information
This is the code I'm using to download files:
------------------

foreach(Dart.PowerTCP.Ftp.ListEntry le in listing)
{
 ProgressBar.Value ++;
 numFiles ++;
 lblProgreso.Text = "(" + numFiles.ToString() + " de " + listing.Count.ToString() + ")";
 
 FtpFile[] Results = DartFTP.Get(store.RemoteFolder, le.Name, store.SourceFolder, false);
 res = CheckResults(Results);

 if (res == 0) // fichero descargado OK
 {
  numFilesOK ++;
  
  // Eliminamos el fichero si está seleccionada la opción
  if (BorrarFicherosDescargados)
  {
   DartFTP.Delete(le.Name, false, false);
  }
 }
 else // Error al descargar el fichero
 {
  numFilesError ++;
 }
}
---------------
*** When I debug I found that (for a file named "Copia de Copia de Prueba.log"):

le.Name = "Copia de Prueba.log"
le.Text = "05-07-03 02:49PM         9004 Copia de Copia de Prueba.log"
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 7, 2003 10:44 AM

DLL's were sent. To use:

Find the original DLL(s) in the PowerTCP\<Product>\Bin folder and zip them up so they can be restored if needed.
Unzip the new DLL's into the same directory (Overwrite the old ones)
Do a Rebuild All on your project


If these still fail, please supply an actual FTP server that is on the Internet so that I can test it. I don't have a problem with our FTP server.
ralaez

From: Madrid, Spain
Posts: 13
Member Since: 05/06/03
posted May 7, 2003 11:27 AM

Sorry but our antivirus has deleted all files in zip. Please send me the files zipped with password (This is the only way to receive zip files) and write the password in mail.

Thanks.
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX