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

System.Data.OleDb.OleDbException: 不能使用 '';文件已在使用中。
  在 System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
  在 System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
  在 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
  在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
  在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
  在 System.Data.OleDb.OleDbConnection.Open()
  在 DH.Data.DbHelperOleDb.Query(String SQLString, OleDbParameter[] cmdParms) 位置 E:\workspace\海洋技校\CMS\DH.Data\DbHelperOleDb.cs:行号 953

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

异常详细信息: System.ApplicationException: System.Data.OleDb.OleDbException: 不能使用 '';文件已在使用中。
  在 System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
  在 System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
  在 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
  在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
  在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
  在 System.Data.OleDb.OleDbConnection.Open()
  在 DH.Data.DbHelperOleDb.Query(String SQLString, OleDbParameter[] cmdParms) 位置 E:\workspace\海洋技校\CMS\DH.Data\DbHelperOleDb.cs:行号 953

源错误:


行 47:                     strmeta = model.Meta;
行 48:                     strimg = "/admin/upimg/" + model.SmallImg;
行 49:                     DH.Model.ProductClassTable ncmodel = new DH.BLL.ProductClassTable().GetModel(model.ClassId);
行 50:                     if (ncmodel != null)
行 51:                     {

源文件: d:\virtualhost\localuser\host9155699\www\en\productshow.aspx.cs    行: 49

堆栈跟踪:


[ApplicationException: System.Data.OleDb.OleDbException: 不能使用 '';文件已在使用中。
   在 System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
   在 System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   在 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   在 System.Data.OleDb.OleDbConnection.Open()
   在 DH.Data.DbHelperOleDb.Query(String SQLString, OleDbParameter[] cmdParms) 位置 E:\workspace\海洋技校\CMS\DH.Data\DbHelperOleDb.cs:行号 953]
   DH.Data.DbHelperOleDb.Query(String SQLString, OleDbParameter[] cmdParms) in E:\workspace\海洋技校\CMS\DH.Data\DbHelperOleDb.cs:970
   DH.Data.Access.ProductClassTable.GetModel(Int32 Id) in E:\workspace\海洋技校\CMS\DH.Access\ProductClassTable.cs:149
   DH.BLL.ProductClassTable.GetModel(Int32 Id) in E:\workspace\企业网站\模板\DH.BLL\ProductClassTable.cs:71
   productshow.Page_Load(Object sender, EventArgs e) in d:\virtualhost\localuser\host9155699\www\en\productshow.aspx.cs:49
   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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本信息: Microsoft .NET Framework 版本:2.0.50727.9055; ASP.NET 版本:2.0.50727.9051
Baidu
sogou