Im trying to connect to a Oracle Database repository via FTP on port 2104, but gets the following error:
2011-02-01 11:14:24,770  ERROR -- Error in connection: 192.168.1.5:4590, acceptclientcallback
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.Generic.List`1.RemoveAt(Int32 index)
at AlexPilotti.FTPS.Client.FTPSClient.Connect(String hostname, Int32 port, NetworkCredential credential, ESSLSupportMode sslSupportMode, RemoteCertificateValidationCallback userValidateServerCertificate, X509Certificate x509ClientCert, Int32 sslMinKeyExchangeAlgStrength,
Int32 sslMinCipherAlgStrength, Int32 sslMinHashAlgStrength, Nullable`1 timeout, Boolean useCtrlEndPointAddressForData)
at ElwinListener.FtpsOperations.OpenFtpConnection(String host, Int32 port, NetworkCredential cred, ESSLSupportMode sup_mode)
at ElwinListener.SocketListener.RunFtpsParameter(String param, FtpsOperations ftps_func)
at ElwinListener.SocketListener.AcceptCallback(IAsyncResult ar)
2011-02-01 11:14:24,801  INFO -- Connection is open, closing 192.168.1.5:4590
Any idea whats causing this?
Thanks for a great ftpclient btw. :-)
Discovered that the repository returned "no-features" at FeatCmd() function with no inital "Features:" or trailing "End"
Did a quickfix to get around the problem:
string feature_trim = features.Trim();
features.RemoveAt(features.Count - 1);
features = null;
Mar 2, 2011 at 10:38 PM
Thanks for posting this issue.
this is a non-standard behaviour, but being Oracle support for it will be included.
[ MVP / IIS ]
I want to include that my Z/OS (MVS) system also returns the FEAT without an END so I also receive the OutOfRangeException. I am including the portion of the log that shows the FEAT. Thanks a million for working on this I love your Class Library.
Status: Resolving address of my.website.com
Status: Connecting to nn.nn.nn.nn:21...
Status: Connection established, waiting for welcome message...
Response: 220-FTPD1 IBM FTP CS V1R11 at my.website.com, 14:33:20 on 2013-01-26.
Response: 220 Connection will close if idle for more than 15 minutes.
Command: USER thisisme
Response: 331 Send password please.
Command: PASS ******
Response: 230 thisisme is logged on. Working directory is "thisisme.".
Response: 215 MVS is the operating system of this server. FTP Server is running on z/OS.
Response: 211 no Extensions supported
Status: Server does not support non-ASCII characters.
Status: Retrieving directory listing...