12 2011 档案

摘要: 当我开启惰性加载情况下,系统会报此异常信息,出现此异常是发生于Sql server 2005.解决方法:在数据库连接字符串中添加MARS信息为true<add name="CRGDatabase" connectionString="Data Source=./;Initial Catalog=DB;uid=User;pwd=Pwd;MultipleActiveResultSets=true;" providerName="System.Data.SqlClient"/>阅读全文
posted @ 2011-12-21 18:37 Shpix 阅读(53) | 评论 (1) 编辑