Hi, my name is Harold Javier. I am a .NET developer, trainer, development coach, mentor, and consultant from the Philippines. I'm an avid user and developer of ASP.NET MVC, ASP.NET Core MVC and ASP.NET Core WebAPI. Previously, I developed numerous ASP.NET Web Form projects for some big & small-sized institutions and organizations.
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: