error 'there is already an open datareader associated with this command which must be closed first'

This can be easily solved by allowing MARS in your connection string. Add MultipleActiveResultSets=true to the provider part of your connection string (where Data Source, Initial Catalog, etc. are specified).

http://msdn.microsoft.com/en-us/library/h32h3abf(v=vs.100).aspx

posted on 2014-09-02 11:13  西西弗斯  阅读(183)  评论(0编辑  收藏  举报