There is already an open DataReader associated with this Connection which must be closed code example

Example 1: There is already an open DataReader associated with this Command which must be closed first.

Add this to your connection string:
MultipleActiveResultSets=true;

Example 2: There is already an open DataReader associated with this Connection which must be closed first.

there is already an open datareader associated with this command which must be closed.

Tags:

Misc Example