| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: CWD Fails |
| wwopp From: Mobile, AL USA Posts: 57 Member Since: 06/14/00 |
posted December 7, 2005 11:17 AM Two XP workstations side by side, each running the same executable on the same local server. On one, the executable, using Dart FTP control, logs in to a remote web server, successfully sends password, and changes directory to \webroot. On the other, login and password sent successfully, but CWD fails! Same exectuable! How is this possible? (We disabled the Windows firewall on each machine). Thanks William |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 7, 2005 12:00 PM What is the error message? What brand is the FTP server? |
| wwopp From: Mobile, AL USA Posts: 57 Member Since: 06/14/00 |
posted December 7, 2005 3:36 PM The Progress event fires with a Status = 2. The server is FTP ServU. It is not a server issue - this code runs on thousands of machines every day and changing directories is not an issue. The machine in question is Windows XP SP2 using Windows firewall...we've turned it off and rebooted still to no effect. Any ideas? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 7, 2005 3:39 PM That just means there was an error. Please tell me the exact reply from the server. You can also use the Trace method to create a log. |
| wwopp From: Mobile, AL USA Posts: 57 Member Since: 06/14/00 |
posted December 8, 2005 12:09 PM Here is the redacted Trace: 12/08/2005 10:25 AM Recv: 220 w2k1105 Microsoft FTP Service (Version 5.0). 12/08/2005 10:25 AM Sent: USER XXXXXX 12/08/2005 10:25 AM Recv: 331 Password required for XXXXXX. 12/08/2005 10:25 AM Sent: PASS xxxxxxxxx 12/08/2005 10:25 AM Recv: 230 User XXXXXX logged in. 12/08/2005 10:25 AM Sent: PASS 12/08/2005 10:25 AM Recv: 503 Login with USER first. 12/08/2005 10:25 AM Sent: QUIT 12/08/2005 10:25 AM Recv: 221 It is very odd that PASS is sent again, because there is only one line anywhere in the code that PASS is sent, and immediately preceeding that is a logical variable that prevents it from being sent twice, as follows: IF ! THISFORM.lSentpass thisform.wlog('Sending User Password') THISFORM.lSentpass=.T. commandresult = SPACE(270) THISFORM.ftp1.OBJECT.COMMAN("PASS " + FTPPassword, @commandresult) RETURN ENDIF Since the variable 'thisform.lSentpass' is set to True (and is only set to False at initialization) why would the Progress Event fire and send the Pass command again? And why just on a particular machine? Any ideas? Thanks William |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 8, 2005 12:19 PM Sorry, but I'm not sure why that would happen. The first thing I would do is stop sending the pass manually and use the Login method instead. I'm not sure why you are doing that. If you are still having trouble, I would suggest that you contact support@dart.com to discuss more advanced support options. |
| wwopp From: Mobile, AL USA Posts: 57 Member Since: 06/14/00 |
posted December 9, 2005 11:51 AM We do use the login method, specifying only the RemoteName. There are reasons we used the Command mode to send the ID and Password. You and I discussed them several years ago but I forget why! I added some additional logging. With one user, the logs read: 12/09/05 10:00:12 : 0 Command: 8, Response: 220 w2k1105 Microsoft FTP Service (Version 5.0)., Status: 0 12/09/05 10:00:12 : 0 Sending User login 12/09/05 10:00:12 : 0 Command: 0, Response: 331 Password required for XXXXX., Status: 0 12/09/05 10:00:12 : 0 User login sent successfully 12/09/05 10:00:12 : 0 Sending User Password 12/09/05 10:00:12 : 0 Command: 0, Response: 230 User XXXXX logged in., Status: 0 12/09/05 10:00:12 : 0 User logged in Successfully Same code, different user, shows: 12/09/05 10:01:58 : 0 Command: 8, Response: 220 w2k1105 Microsoft FTP Service (Version 5.0)., Status: 0 12/09/05 10:01:58 : 0 Sending User login 12/09/05 10:01:58 : 0 Command: 0, Response: 331 Password required for XXXXX., Status: 0 12/09/05 10:01:58 : 0 User login sent successfully 12/09/05 10:01:58 : 0 Sending User Password 12/09/05 10:01:58 : 0 Command: 3, Response: 230 User XXXXX logged in., Status: 1 12/09/05 10:01:58 : 0 User logged in Successfully Why would one show Command as FTPAccount and the other as a Command? Regards, William |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 12, 2005 10:54 AM A trace would provide much better information. Please use the trace method to get a log of the exact commands and responses that are sent. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 12, 2005 10:59 AM Sorry, I now see that you already posted the trace but it did not help. At this point I think that your problem has become too complex to troubleshoot on the forum. Please contact support@dart.com to discuss alternate support options. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|