| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: mGet not working |
| marti100 From: Bern, Switzerland Posts: 9 Member Since: 10/28/03 |
posted October 30, 2003 8:11 AM Situation: MGet has not the same behaviour on win2K Ftp Server and Titan Ftp Server. I have written the method MGet in a class ftp_methods.cs in this way: public Dart.PowerTCP.SecureFtp.FtpFile[] ftp_mget(String sourcePath, String sourceFile, String destination) { Dart.PowerTCP.SecureFtp.FtpFile[] getFiles = null; try { getFiles = ftp1.Get(sourcePath, sourceFile, destination, false); } catch (Exception e) { ftp1.Abort(); Console.WriteLine(e.ToString()); } return getFiles; } This method is called like: Dart.PowerTCP.SecureFtp.FtpFile[] getFiles = my_ftp_methods.ftp_mget("//something//", "*", "C:\\tmp\\"); When using the windows ftp server, then I will recieve all files in the corresponding directory, but when using the Titan ftp server (with the same file structure and files) I will recieve nothing ... No exception will be reached in the code above. So I think, everything is working fine, but why do I not recieve any files? Thanks in advance! |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted October 30, 2003 9:12 AM I would not be able to determine what's going on without seeing it happen for myself. If you have a test account that we can use on the Titan server, please email support@dart.com with the login info (or post here if you want, I'll remove it from the forum after I get it) |
| marti100 From: Bern, Switzerland Posts: 9 Member Since: 10/28/03 |
posted October 30, 2003 9:55 AM Unforunately, I cannot provide you an account to the ftp server from the internet. But this one is the log of the titan ftp server after the get command: 2003-10-30 15:51:37 [2/276] Connection accepted from 127.0.0.1:1489, new socket is #488 2003-10-30 15:51:37 [2/488] Checking IP Access rules: IP address 127.0.0.1 is not banned. 2003-10-30 15:51:37 [2/488] Server is online, processing connection. 2003-10-30 15:51:37 [2/488] Sending: 220 Titan FTP Server 2.30.151 Ready. 2003-10-30 15:51:37 [2/488] Successfully sent banner message 2003-10-30 15:51:37 [2/488] Received: USER anonymous 2003-10-30 15:51:37 [2/488] Sending: 331 User name okay, need password. 2003-10-30 15:51:37 [2/488] Received: PASS <hidden> 2003-10-30 15:51:37 [2/488] Sending: 230-Welcome anonymous from 127.0.0.1. You are now logged in to the server. 2003-10-30 15:51:37 [2/488] 230 User logged in, proceed. 2003-10-30 15:51:37 [2/488] Received: PASV 2003-10-30 15:51:37 [2/488] Socket #532 listening on Address/Port: 127.0.0.1:1490. 2003-10-30 15:51:37 [2/488] Sending: 227 Entering Passive Mode (127,0,0,1,5,210). 2003-10-30 15:51:37 [2/488] Received: LIST files_to_tts/ 2003-10-30 15:51:37 [2/488] Sending: 150 File status okay; about to open data connection. 2003-10-30 15:51:37 [2/488] Sending: 226 Closing data connection. Transferred 9 bytes. 2003-10-30 15:51:37 [2/488] Closing connection 0x126f008, socket #488 There is no return of any files in the directroy files_to_tts/. But there are several in it! |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted October 30, 2003 9:57 AM What happens if you try files_to_tts/* (with the wildcard)? |
| marti100 From: Bern, Switzerland Posts: 9 Member Since: 10/28/03 |
posted October 30, 2003 10:29 AM The behaviour is the same ... no files are downloaded. This is the log from IIS that works: #Software: Microsoft Internet Information Services 5.1 #Version: 1.0 #Date: 2003-10-30 15:15:16 #Fields: date time c-ip cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes cs-bytes time-taken cs-version cs-host cs(User-Agent) cs(Cookie) cs(Referer) 2003-10-30 15:15:16 127.0.0.1 [1]USER anonymous - 331 0 0 0 0 FTP - - - - 2003-10-30 15:15:16 127.0.0.1 [1]PASS test@test.com - 230 0 0 0 20 FTP - - - - 2003-10-30 15:15:16 127.0.0.1 [1]sent /files_to_tts/test.txt - 226 0 0 0 0 FTP - - - - 2003-10-30 15:15:16 127.0.0.1 [1]sent /files_to_tts/test.txt - 226 0 0 0 10 FTP - - - - 2003-10-30 15:15:16 127.0.0.1 [2]USER anonymous - 331 0 0 0 0 FTP - - - - 2003-10-30 15:15:16 127.0.0.1 [2]PASS test@test.com - 230 0 0 0 0 FTP - - - - 2003-10-30 15:15:16 127.0.0.1 [2]DELE files_to_tts/test.txt - 250 0 0 0 0 FTP - - - - For me it seems that it is quite difference to the other log. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted October 30, 2003 10:31 AM You're going to have to find a way for me to get access, or else find another server available on the internet that exhibits the same behavior. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|