Home

InvalidOperationException: There is already an open DataReader associated with this Command which...

When I try to run 2 ExecuteQueryDynamic()'s, I get:

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


sample code:

//works
ExecuteQueryDynamic("SELECT TOP 1 * FROM Customers").Dump();

//doesn't work
ExecuteQueryDynamic("SELECT TOP 1 * FROM Customers").Dump();

reference: https://stackoverflow.com/a/27750602/185123

Comments

Sign In or Register to comment.