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

Unable to open the database file
unable to open database file

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

异常详细信息: System.Data.SQLite.SQLiteException: Unable to open the database file
unable to open database file

源错误:

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

堆栈跟踪:


[SQLiteException (0x80004005): Unable to open the database file
unable to open database file]
   System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt) +375
   System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt) +199
   System.Data.SQLite.SQLiteDataReader.NextResult() +226
   System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) +87
   System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) +38
   System.Data.SQLite.SQLiteCommand.ExecuteNonQuery() +39
   System.Data.SQLite.SQLiteTransaction..ctor(SQLiteConnection connection, Boolean deferredLock) +301
   System.Data.SQLite.SQLiteConnection.BeginDbTransaction(IsolationLevel isolationLevel) +73
   System.Data.Common.DbConnection.System.Data.IDbConnection.BeginTransaction() +13
   NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel isolationLevel) +214

[TransactionException: Begin failed with SQL exception]
   NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel isolationLevel) +337
   NHibernate.Transaction.AdoTransaction.Begin() +8
   N2.Persistence.NH.NHTransaction..ctor(ISessionProvider sessionProvider) +64
   N2.Persistence.NH.NHRepository`2.BeginTransaction() +26
   N2.Persistence.NH.ContentPersister.SaveAction(ContentItem item) +90
   N2.Utility.InvokeEvent(EventHandler`1 handler, ContentItem item, Object sender, Action`1 finalAction) +110
   N2.Persistence.NH.ContentPersister.Save(ContentItem unsavedItem) +54
   QDCHIATAI.Controllers.NewsController.Index() +181
   lambda_method(ExecutionScope , ControllerBase , Object[] ) +43
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +178
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +24
   System.Web.Mvc.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() +53
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +258
   System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +20
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +193
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +300
   System.Web.Mvc.Controller.ExecuteCore() +104
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +36
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +53
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +30
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +7
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8770110
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


版本信息: Microsoft .NET Framework 版本:2.0.50727.8669; ASP.NET 版本:2.0.50727.5491