Popular Posts

Saturday, January 21, 2012

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

I had a scenario where needed to loop through all the projects and then all it tasks and getting the error in Entity framework 4.2: "There is already an open DataReader associated with this Command which must be closed first."

The solution is to set the lazy loading off or add MARS to the connection string. Strange?

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

'via Blog this'

No comments:

Post a Comment