Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8.7k views
in .NET FTP by (120 points)
I'm using the C# implementation of edtFTP. When downloading a 315 MB file from an AIX box using the ASCII transfer mode, the transfer aborts and I receive the following error after a left curly brace character ({) is encountered (somewhere around the 81 MB mark):

A runtime error has occurred: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

The same file can be downloaded without a problem using BINARY transfer mode.

Here's the code:

   FTPClient ftp = new FTPClient(strIPAddress);
   ftp.ConnectMode = FTPConnectMode.ACTIVE;
   ftp.Login(strFTPUserID, strFTPPassword);
   ftp.Chdir(strFTPPath);
   ftp.TransferType = FTPTransferType.ASCII;
   ftp.Get(strTempPath + strInputFile, strInputFile);


Any ideas?

Thanks in advance,

Dean

4 Answers

0 votes
by (161k points)
This is a bug. Download 1.0.1 (just released) and see if this fixes your problem.

http://www.enterprisedt.com/products/ed ... nload.html

I'm using the C# implementation of edtFTP. When downloading a 315 MB file from an AIX box using the ASCII transfer mode, the transfer aborts and I receive the following error after a left curly brace character ({) is encountered (somewhere around the 81 MB mark):

A runtime error has occurred: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

The same file can be downloaded without a problem using BINARY transfer mode.

Here's the code:

   FTPClient ftp = new FTPClient(strIPAddress);
   ftp.ConnectMode = FTPConnectMode.ACTIVE;
   ftp.Login(strFTPUserID, strFTPPassword);
   ftp.Chdir(strFTPPath);
   ftp.TransferType = FTPTransferType.ASCII;
   ftp.Get(strTempPath + strInputFile, strInputFile);




Any ideas?

Thanks in advance,

Dean
0 votes
by
That did the trick. Great support for a free product! Much appreciated.

Thanks again,

Dean
0 votes
by
lol, ok I just replied to my other thread about this problem and specifically mentioned the curly braces. Please see my other thread titled format error for a workaround to this problem if you can't, or don't want to upgrade to a different version of the assembly.

Binary Jay

This is a bug. Download 1.0.1 (just released) and see if this fixes your problem.

http://www.enterprisedt.com/products/ed ... nload.html

I'm using the C# implementation of edtFTP. When downloading a 315 MB file from an AIX box using the ASCII transfer mode, the transfer aborts and I receive the following error after a left curly brace character ({) is encountered (somewhere around the 81 MB mark):

A runtime error has occurred: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

The same file can be downloaded without a problem using BINARY transfer mode.

Here's the code:

   FTPClient ftp = new FTPClient(strIPAddress);
   ftp.ConnectMode = FTPConnectMode.ACTIVE;
   ftp.Login(strFTPUserID, strFTPPassword);
   ftp.Chdir(strFTPPath);
   ftp.TransferType = FTPTransferType.ASCII;
   ftp.Get(strTempPath + strInputFile, strInputFile);




Any ideas?

Thanks in advance,

Dean
0 votes
by
Oops, I am using 1.0.1 - this is still a problem (for me) with the latest version, so I'll continue using my workaround.

Binary Jay


lol, ok I just replied to my other thread about this problem and specifically mentioned the curly braces. Please see my other thread titled format error for a workaround to this problem if you can't, or don't want to upgrade to a different version of the assembly.

Binary Jay

This is a bug. Download 1.0.1 (just released) and see if this fixes your problem.

http://www.enterprisedt.com/products/ed ... nload.html

I'm using the C# implementation of edtFTP. When downloading a 315 MB file from an AIX box using the ASCII transfer mode, the transfer aborts and I receive the following error after a left curly brace character ({) is encountered (somewhere around the 81 MB mark):

A runtime error has occurred: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

The same file can be downloaded without a problem using BINARY transfer mode.

Here's the code:

   FTPClient ftp = new FTPClient(strIPAddress);
   ftp.ConnectMode = FTPConnectMode.ACTIVE;
   ftp.Login(strFTPUserID, strFTPPassword);
   ftp.Chdir(strFTPPath);
   ftp.TransferType = FTPTransferType.ASCII;
   ftp.Get(strTempPath + strInputFile, strInputFile);




Any ideas?

Thanks in advance,

Dean

Categories

...