I'm getting an error, The specified operation is not recognized. [9051], when I call
AnotherFolder = FolderListName.GetRowData(i);
in the following code block. It always fails when the count is 802. Usually when I get an error like this with SDK, it turns out I'm forgetting to call Dispose on an object. However, EntryListingRow doesn't have that.
I've tried it on two different machines, two different repositories, and a set of folders named Folder X to make sure none of them are the issue.
I'm using Visual Studio 10, the 9.2 SDK, and Windows 2008 R2. Anyone have any ideas as to what I'm doing wrong?
FolderInfo FI = Folder.GetFolderInfo(@"\Case Management\CLIENT RECORDS\A", LfSesh); EntryListingSettings ELSets = new EntryListingSettings(); ELSets.EntryFilter = EntryTypeFilter.Folders; ELSets.AddColumn(SystemColumn.DisplayName); ELSets.AddColumn(SystemColumn.Path); FolderListing FolderList = FI.OpenFolderListing(ELSets); EntryListingRow AFolder; for (int i = 1; i <= FolderList.RowsCount; i++) { AFolder = FolderList.GetRowData(i); string FolderPath = AFolder.GetDatumAsString(SystemColumn.Path) + @"\" + AFolder.GetDatumAsString(SystemColumn.DisplayName) + @"\"; FolderInfo FI2 = Folder.GetFolderInfo(FolderPath, LfSesh); EntryListingSettings ELSetsName = new EntryListingSettings(); ELSetsName.EntryFilter = EntryTypeFilter.Folders; ELSetsName.AddColumn(SystemColumn.DisplayName); ELSetsName.AddColumn(SystemColumn.Path); FolderListing FolderListName = FI2.OpenFolderListing(ELSetsName); FI2.Dispose(); } FI.Dispose();