Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: 不能使用 '';文件已在使用中。

Source Error:


Line 123:        if (curId > 0)
Line 124:        {
Line 125:            ZZY.Model.xp_procategory model = new ZZY.BLL.xp_procategory().GetModel(curId);
Line 126:            strsubcategory = model.title;
Line 127:            strwhere += " and categoryid = " + curId;

Source File: d:\ekemWeb\ekemWeb\products.aspx.cs    Line: 125

Stack Trace:


[OleDbException (0x80004005): 不能使用 '';文件已在使用中。]
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +351
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +31
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +76
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126
   System.Data.OleDb.OleDbConnection.Open() +43
   DbHelperOleDb.PrepareCommand(OleDbCommand cmd, OleDbConnection conn, OleDbTransaction trans, String cmdText, OleDbParameter[] cmdParms) in J:\2017-12\银河娱乐 GALAXY RECREATION\银河娱乐 GALAXY RECREATION\52新双语\DBUtility\DbHelperOleDb.cs:271
   DbHelperOleDb.Query(String SQLString, OleDbParameter[] cmdParms) in J:\2017-12\银河娱乐 GALAXY RECREATION\银河娱乐 GALAXY RECREATION\52新双语\DBUtility\DbHelperOleDb.cs:249
   ZZY.DAL.xp_procategory.GetModel(Int32 id) in J:\2017-12\银河娱乐 GALAXY RECREATION\银河娱乐 GALAXY RECREATION\52新双语\DAL\xp_procategory.cs:207
   ZZY.BLL.xp_procategory.GetModel(Int32 id) in J:\2017-12\银河娱乐 GALAXY RECREATION\银河娱乐 GALAXY RECREATION\52新双语\BLL\xp_procategory.cs:79
   _Default.ProductBind() in d:\ekemWeb\ekemWeb\products.aspx.cs:125
   _Default.AspNetPager1_PageChanged(Object sender, EventArgs e) in d:\ekemWeb\ekemWeb\products.aspx.cs:159
   Wuqi.Webdiyer.AspNetPager.OnPageChanged(EventArgs e) in e:\GitHub\AspNetPagerCN\AspNetPager\Methods.cs:42
   Wuqi.Webdiyer.AspNetPager.OnPageChanging(PageChangingEventArgs e) in e:\GitHub\AspNetPagerCN\AspNetPager\Methods.cs:32
   Wuqi.Webdiyer.AspNetPager.OnLoad(EventArgs e) in e:\GitHub\AspNetPagerCN\AspNetPager\aspnetpager.cs:103
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1016
Baidu
sogou