“/”应用程序中的服务器错误。

不能使用 '';文件已在使用中。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.OleDb.OleDbException: 不能使用 '';文件已在使用中。

源错误:


行 54:     {
行 55:         StringBuilder strHtml = new StringBuilder();
行 56:         List<InfoTypeModel> infoTypeList = bll_infoType.GetListByFatherId(fatherId);
行 57:         if (infoTypeList.Count == 0) return strHtml;
行 58: 

源文件: d:\inetpub\10084020\wwwroot\App_Code\WebPubClass.cs    行: 56

堆栈跟踪:


[OleDbException (0x80004005): 不能使用 '';文件已在使用中。]
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +969373
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +29
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4863644
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.OleDb.OleDbConnection.Open() +40
   QianZhu.Utility.OleDbHelper.PrepareCommand(OleDbCommand cmd, OleDbConnection conn, OleDbTransaction trans, CommandType cmdType, String cmdText, OleDbParameter[] cmdParms) in D:\projects\huajiantianheng\Utility\OleDbHelper.cs:236
   QianZhu.Utility.OleDbHelper.ExecuteReader(String connectionString, CommandType cmdType, String cmdText, OleDbParameter[] cmdParms) in D:\projects\huajiantianheng\Utility\OleDbHelper.cs:150
   QianZhu.DAL.InfoType.GetList(Int32 pageIndex, Int32 pageSize, List`1 sqlWhereList, List`1 sqlOrderList) in D:\projects\huajiantianheng\company\DAL\InfoType.cs:211
   QianZhu.BLL.InfoType.GetList(Int32 pageIndex, Int32 pageSize, List`1 sqlWhereList, List`1 sqlOrderList) in D:\projects\huajiantianheng\company\BLL\InfoType.cs:194
   QianZhu.BLL.InfoType.GetListByFatherId(Int32 fatherId, Int32 count) in D:\projects\huajiantianheng\company\BLL\InfoType.cs:217
   QianZhu.BLL.InfoType.GetListByFatherId(Int32 fatherId) in D:\projects\huajiantianheng\company\BLL\InfoType.cs:226
   WebPubClass.BindMenu(Int32 fatherId, String pageName, Boolean page_equal_1, Boolean with_ul) in d:\inetpub\10084020\wwwroot\App_Code\WebPubClass.cs:56
   inc_nav.Page_Load(Object sender, EventArgs e) in d:\inetpub\10084020\wwwroot\inc\nav.ascx.cs:21
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本信息: Microsoft .NET Framework 版本:2.0.50727.3634; ASP.NET 版本:2.0.50727.3634