Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This error message means that you are trying to access a field or data from the MySqlDataReader object before calling the Read() method. When you create a MySqlDataReader object and execute a query, you need to call the Read() method to move to the first record in the result set. Only after that can you access the data from the current record. If you try to access the data before calling Read(), you will get this error message. Therefore, you need to make sure to call the Read() method before trying to access any data from the MySqlDataReader object.