Index is less than 0 or more than or equal to the list count
Is anyone aware of any issues with the System.Collections class that requires code work-arounds? I have an ASP.NET application that works fine in Windows. However, running in Mono, I get the following exception in three different places. In one situation, I am simply deleting a record from a data grid. In another, I am making changes to a datatable. The problem appears to be isolated to System.Collections.ArrayList.get_item. Here is the pertinent stack trace:
Thanks in advance!
System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
Parameter name: index
-1
at System.Collections.ArrayList.get_Item (Int32 index) [0x00032] in /tmp/monobuild/build/BUILD/mono-1.9.1/mcs/class/corlib/System.Collections/ArrayList.cs:2645
Neil Konitzer
Freisoft Consulting Services, Inc.