| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Token supplied to function is not valid |
| srik From: stamford, CT USA Posts: 8 Member Since: 03/10/06 |
posted March 10, 2006 6:20 PM Hi, I am trying to connect to a secure FTP server through Explicit TLS/SSL authentication using the listview sample. I get a message "Token supplied to function is not valid". Following is the log I see:- *************************************** Connecting to 192.168.21.106... 220 GlobalSCAPE Secure FTP Server (v. 3.1) * UNREGISTERED COPY * AUTH TLS-P 500 Protocol not supported. AUTH TLS 234 AUTH Command OK. Initializing SSL connection. USER srik-std 331 Password required for srik-std. PASS srik 230-This is an * UNREGISTERED COPY * of GlobalSCAPE Secure FTP Server. 230- 230 Login OK. Proceed. Connected PWD 257 "/" is current folder. REST 10 350 restarting at 10 - send STOR or RETR to initiate transfer. REST 0 350 restarting at 0 - send STOR or RETR to initiate transfer. PASV 227 Entering Passive Mode (192,168,21,106,8,141). LIST 150 Opening ASCII mode data connection for file list. 226 Transfer complete. 245 bytes transferred. 245 Bps. Connection closed. Connection aborted. ********************************** I was succesfull in connecting to the same site using GUI tool. Test app is a windows application developed using C#. Any help is appreciated. Thanks Srikanth |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted March 13, 2006 5:12 PM Hi Srikanth, When I tried setting Security to Implicit or ExplicitControlOnly, it worked ok. For Explicit, I actually had to send a couple of commands before performing the List. If you add code to your project to do the following: ftp1.Invoke(FtpCommand.Null, "PBSZ 0"); ftp1.Invoke(FtpCommand.Null, "PROT P"); prior to any listing or file transfer, it should work ok. Hope it helps, -ken |
| srik From: stamford, CT USA Posts: 8 Member Since: 03/10/06 |
posted March 13, 2006 5:50 PM Amazing Ken.It worked. Appreciate your quick and prompt response. -Srikanth |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|