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: Ftp.List returning empty strings in file, and path variables
tfrugia

From: Hillsboro, OR USA
Posts: 23
Member Since: 04/25/05
posted January 24, 2006 9:36 PM

Hello,

 Trying to connect to an FTP server, and I'm getting empty file and paths returned (right # of files, just no names or paths).

 I tested with your FTPListView program, and here is the log:

S<-220 [client 10] SDOS FUSION FTP server (Version 3.4) ready.

C->USER ****

S<-331 [client 10] Password required for ****.

C->PASS ****

S<-230 [client 10] User **** logged in.

C->PWD

S<-251 [client 10] "5:7:" is current directory.


In your listview application this appears in the window right after the last line of the log:

Authentication Failed


Any ideas? I can give you access to this server via private e-mail if you wish to test.

Thanks
tfrugia

From: Hillsboro, OR USA
Posts: 23
Member Since: 04/25/05
posted January 24, 2006 9:37 PM

One other note, in your listview application no files or folders show up, but when I FTP using the DOS Ftp it shows up just fine.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 24, 2006 10:22 PM

For something like this, we would need access to the server to troubleshoot it. If you can provide that, please send the details we need to connect to support@dart.com

If you are not able to provide us access, please contact David Harry (sales@dart.com) to find out about advanced support options.
tfrugia

From: Hillsboro, OR USA
Posts: 23
Member Since: 04/25/05
posted January 25, 2006 1:49 AM

I figured this one out after a lot of testing. Posting my solution for anyone else who may be using a pseudo-standard ftp server:

Basically I had to modify the 'full' property of the Ftp.List method to false.

ie:

foreach(Dart.PowerTCP.SecureFtp.ListEntry le in FtpVar.List("", false))
{
 // do something
}
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 25, 2006 9:01 AM

Thanks for the follow-up.
tfrugia

From: Hillsboro, OR USA
Posts: 23
Member Since: 04/25/05
posted January 25, 2006 12:16 PM

I'm still having some issues, I cannot get your control to return the proper size. In the dos ftp, if I do an "LS filename" it returns the size as well. Using the Ftp.list I can see it is sending the LIST command but the size always comes back with a "0".

FYI - the SIZE command is not supported by this FTP server.

I will e-mail you access to this server.

Thanks for any help!
tfrugia

From: Hillsboro, OR USA
Posts: 23
Member Since: 04/25/05
posted January 30, 2006 12:23 PM

One follow-up querkiness.

On that same server I sent you information on, when I send the LIST command nothing is returned to the Ftp object (ie, nothing to iterate over), although while doing a packet capture I can see all the data coming back. If your component gets data back in a format it doesn't recognize, it should still generate a Listing so I can iterate over it, right?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 30, 2006 8:10 PM

Your server does not support standard listing styles. You will have to use the Listing.ToString() method and parse the listing yourself.
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX