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

I came across this error while trying to port my code to Entity Framework 4.1

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

To fix this, simply add MultipleActiveResultSets=true to your connection string.
MARS is supported by SQL Server 2005 and 2008

I found some more info on this StackOverflow Article

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s