Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

sateliter

Posts

2

Joined

Wed Jun 24, 2009 7:49 am

Issue, Dir details on mainframe

by sateliter » Wed Jun 24, 2009 8:29 am

I hope someone could help me.
I have c# code to retrieve file information from a IBM Mainframe
I'm using edtFTPnet library version 2.0.0.0
The code look like this:

String[] allfiles;
FTPFile[] filesdetail;

allfiles = ftpC.Dir();
filesdetail = ftpC.DirDetails();

Dir method work just fine, but DirDetails is throwing the following message

A first chance exception of type 'System.IndexOutOfRangeException' occurred in edtFTPnet.dll
Index was outside the bounds of the array.
at EnterpriseDT.Net.Ftp.UnixFileParser.IsValidFormat(String[] listing)
at EnterpriseDT.Net.Ftp.FTPFileFactory.DetectParser(String[] files)
at EnterpriseDT.Net.Ftp.FTPFileFactory.Parse(String[] fileStrings)
at EnterpriseDT.Net.Ftp.FTPClient.DirDetails(String dirname)
at EnterpriseDT.Net.Ftp.FTPClient.DirDetails()

There are 754 files on the directory, I also tried initializing filesdetail variable to 1000 items but still getting the same error.
I tried to test this code in a smaller directory (350 items) and the error is gone, but DirDetails method is returning an array of zero elements.
Dir method is working fine, returning all the items.

Any help would be very appreciated.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Issue, Dir details on mainframe

by support2 » Wed Jun 24, 2009 1:11 pm

can you post a directory listing from command line FTP ('dir')? only a portion of course
no avatar
User

sateliter

Posts

2

Joined

Wed Jun 24, 2009 7:49 am

Re: Issue, Dir details on mainframe

by sateliter » Thu Jun 25, 2009 1:24 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Issue, Dir details on mainframe

by support2 » Thu Jun 25, 2009 9:24 pm


Who is online

Users browsing this forum: No registered users and 9 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign