Quote:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
The message tells you all.
Your code try to access an element that do not exist in an array or list.
Try to run your page on debugger, when error occurs, pay attention to the value of
index
and to the size of the array/list.