This project is read-only.

client.SendCustomCommand Method

Aug 5, 2009 at 8:19 PM

Hi,

I got error when invoking SendCustomCommand method. I set breakpoint immediately after the method, and wait enough time, still got the error.

Error: Cannot issue a new command while waiting for a previous one to complete

Code:

                FTPReply reply = client.SendCustomCommand("LIST");
                
                client.PutFile( fileName, remoteFileName, new FileTransferCallback(Uploaded)); 

Thanks,
Victor

Aug 5, 2009 at 11:42 PM

Victor,

to execute a "LIST" command you should use the "GetDirectoryList()" method.

Timeouts are tipically due to blocked data connections. Please check that your server responds in passive mode and that your firewall supports this FTPS configuration.

 

Cheers, 

Alessandro