You’ve received the following error: Index was outside the bounds of the array with an IndexOutOfRangeException or you received:
An exception of type ‘System.ArgumentOutOfRangeException’ occurred in mscorlib.dll but was not handled in user code Additional information: Index was out of range. Must be non-negative and less than the size of the collection with an ArgumentOutOfRangeException.
So what gives? Here is what you need to know.
- What is IndexOutOfRangeException error message: Index was outside the bounds of the array
- What is An exception of type System.ArgumentOutOfRangeException
- Type: System.ArgumentOutOfRangeException
- Encountering the ArgumentOutOfRangeExceptionException Type
- What is IndexOutOfRangeException: Index was outside the bounds of the array
- ArgumentOutOfRangeException class
- Frequently Asked Questions