10 December 2014

Invalid attempt to read when no data is present.

Have you experienced this error?

If you're using SqlDatareader, a simple solution is to use something like this:

while (reader.Read())
    {

    }

No comments:

Post a Comment