Object reference not set to an instance of an object.

Error

Object reference not set to an instance of an object.
Invalid attempt to call Read when reader is closed. Object reference not set to an instance of an object.