from an internet website: a datareader represents an open connection to the database. to run 2 readers simultaneously, you need to use two seperate connections. #1 just change your connection string to add it back (add MultipleActiveResultSets=True to connection string).http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=123691&SiteID=1 NO SOLUTION #2 new Connection on every GetConnection() --> no singleton NO SOLUTION ERROR: Invalid attempt to MetaData when reader is closed. #3 connectionstring always another! NO SOLUTION ERROR: Invalid attempt to MetaData when reader is closed. #4 BackgroundWorker solves the problem!
Latest Posts
Popular Posts
-
I am *very* keen on automating tests, so I was looking into unit testing a WCF service. If I say "unit test", I mean a fast ,...
-
It's easy I thought, just select the Property of the EntityType and set the Default Value in the Properties window to: DateTime.Now ...
-
*Updated* 26. September 2010: Updated with comments from Adam Cogan *Updated* 27. September 2010: Updated the comparison between anonymo...
No comments:
Post a Comment