I\'m using a SqlDataReader and get this exception when trying to read a column...
SqlDataReader
System.IndexOutOfRangeException: record >
System.IndexOutOfRangeException: record
In my case this error was because I was accidentally executing two select statements in my command text. I had two separate output results and the first output didn't contain the column name I was reading and hence the error.