error 'there is already an open datareader associated with this command which must be closed first'
2014-09-02 11:13
841 查看
This can be easily solved by allowing MARS in your connection string. Add
http://msdn.microsoft.com/en-us/library/h32h3abf(v=vs.100).aspx
MultipleActiveResultSets=trueto 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
相关文章推荐
- 多线程下,多次操作数据库报错,There is already an open DataReader associated with this Command which must be closed first.
- 关于MultipleActiveResultSets属性导致的There is already an open DataReader associated with this Command which must be closed first的解决方法
- There is already an open DataReader associated with this Command which must be closed first的错误解决办法
- 解决"There is already an open DataReader associated with this Command which must be closed first."
- LINQ链接数据库出错(There is already an open DataReader associated with this Command which must be closed first )
- EF "There is already an open DataReader associated with this Command which must be closed first."
- LINQ: There is already an open DataReader associated with this Command which must be closed first
- There is already an open DataReader associated with this Command which must be closed first." exception in Entity Framework
- Fixing the "There is already an open DataReader associated with this Command which must be closed first." exception in Entity Framework
- 在实体对象中访问导航属性里的属性值出现异常“There is already an open DataReader associated with this Command which must be closed first”
- LINQ: There is already an open DataReader associated with this Command which must be closed first
- MySql: There is already an open DataReader associated with this Command which must be closed first.2/16
- 解决"There is already an open DataReader associated with this Command which must be closed first." exception in EF 中
- There is already an open DataReader associated with this Command which must be closed first
- LINQ: There is already an open DataReader associated with this Command which must be closed first
- "There is already an open DataReader associated with this Command which must be closed first"错误
- There is already an open DataReader associated with this Connection which must be closed first
- There is already an open DataReader associated with this Connection which must be closed first
- There is already an open DataReader associated with this Connection which must be closed first
- There is already an open DataReader associated with this Connection which must be closed first