“/”應用程序中的服務器錯誤。

不能打开数据库 ''。应用程序可能无法识别该数据库,或文件可能损坏。

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

異常詳細信息: System.Data.OleDb.OleDbException: 不能打开数据库 ''。应用程序可能无法识别该数据库,或文件可能损坏。

源錯誤:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆棧跟蹤:


[OleDbException (0x80004005): 不能打开数据库 ''。应用程序可能无法识别该数据库,或文件可能损坏。]
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +320
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +88
   System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +24
   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 oldConnection, DbConnectionInternal& connection) +507
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +154
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +21
   System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +19
   System.Data.OleDb.OleDbConnection.Open() +42
   Maticsoft.DBUtility.DbHelperOleDb.PrepareCommand(OleDbCommand cmd, OleDbConnection conn, OleDbTransaction trans, String cmdText, OleDbParameter[] cmdParms) in F:\wwwroot\Newsystem公安局\DBUtility\DbHelperOleDb.cs:421
   Maticsoft.DBUtility.DbHelperOleDb.Query(String SQLString, OleDbParameter[] cmdParms) in F:\wwwroot\Newsystem公安局\DBUtility\DbHelperOleDb.cs:399
   Maticsoft.DAL.Categories.GetModel(Int32 id) in F:\wwwroot\Newsystem公安局\DAL\Categories.cs:138
   Maticsoft.BLL.Categories.GetModel(Int32 id) in F:\wwwroot\Newsystem公安局\BLL\Categories.cs:56
   managementgl.Categories(String no) +103
   _news.newflgl(String id) +917
   _news.Page_Load(Object sender, EventArgs e) +330
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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