System.IndexOutOfRangeException: <FieldName>
This error usually means that your query did not include <FieldName> so the code cannot find it.