This project is read-only.

Connecting to OracleDB Repository

Feb 1, 2011 at 10:27 AM


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 [7] ERROR -- Error in connection:, 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.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.RemoveAt(Int32 index)
at AlexPilotti.FTPS.Client.FTPSClient.FeatCmd()
at AlexPilotti.FTPS.Client.FTPSClient.GetFeaturesFromServer()
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.FtpsOperations.OpenFtpConnection()
at ElwinListener.SocketListener.RunFtpsParameter(String param, FtpsOperations ftps_func)
at ElwinListener.SocketListener.AcceptCallback(IAsyncResult ar)
2011-02-01 11:14:24,801 [7] INFO -- Connection is open, closing

Any idea whats causing this?

Thanks for a great ftpclient btw. :-)

Feb 1, 2011 at 12:17 PM

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[0].Trim();
  if (!feature_trim.Equals("no-features"))
        features.RemoveAt(features.Count - 1);
  features = null;


Mar 2, 2011 at 11:38 PM

Thanks for posting this issue.

this is a non-standard behaviour, but being Oracle support for it will be included.



Alessandro Pilotti

[ MVP / IIS ]

Jan 26, 2013 at 9:23 PM

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
Status: Connecting to nn.nn.nn.nn:21...
Status: Connection established, waiting for welcome message...
Response: 220-FTPD1 IBM FTP CS V1R11 at, 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.".
Command: SYST
Response: 215 MVS is the operating system of this server. FTP Server is running on z/OS.
Command: FEAT
Response: 211 no Extensions supported
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...