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

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

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

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

源错误:


行 13: 
行 14:         BannerUrl = new ZZY.BLL.xp_advs().GetModel(14).img;
行 15:         lianxi = new ZZY.BLL.xp_articles().GetModel(5).contentsEn;
行 16: 
行 17:         this.Rep_ProductList.DataSource = new ZZY.BLL.xp_procategory().GetList(" parentid = 1 and menuid = 54");

源文件: h:\web\ekemWeb\ekemWeb\en\Control\Footer.ascx.cs    行: 15

堆栈跟踪:


[OleDbException (0x80004005): 不能使用 '';文件已在使用中。]
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +326
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +87
   System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +22
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) +38
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +793
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +140
   System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +16
   System.Data.OleDb.OleDbConnection.Open() +42
   DbHelperOleDb.PrepareCommand(OleDbCommand cmd, OleDbConnection conn, OleDbTransaction trans, String cmdText, OleDbParameter[] cmdParms) in J:\2017-12\9159金莎游艺场\9159金莎游艺场\52新双语\DBUtility\DbHelperOleDb.cs:271
   DbHelperOleDb.Query(String SQLString, OleDbParameter[] cmdParms) in J:\2017-12\9159金莎游艺场\9159金莎游艺场\52新双语\DBUtility\DbHelperOleDb.cs:249
   ZZY.DAL.xp_articles.GetModel(Int32 id) in J:\2017-12\9159金莎游艺场\9159金莎游艺场\52新双语\DAL\xp_articles.cs:181
   ZZY.BLL.xp_articles.GetModel(Int32 id) in J:\2017-12\9159金莎游艺场\9159金莎游艺场\52新双语\BLL\xp_articles.cs:78
   Control_Footer.Page_Load(Object sender, EventArgs e) in h:\web\ekemWeb\ekemWeb\en\Control\Footer.ascx.cs:15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +74
   System.Web.UI.Control.LoadRecursive() +120
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2815


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.17929