Object reference not set to an instance of an object.

Error

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