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

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) +389
   System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt) +209
   System.Data.SQLite.SQLiteDataReader.NextResult() +244
   System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) +79
   System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) +38
   System.Data.SQLite.SQLiteCommand.ExecuteNonQuery() +33
   UPCMS.Manage.SQLite.SQLiteHelper.ExecuteNonQuery(SQLiteConnection con, SQLiteTransaction trans, CommandType commandType, String commandText, SQLiteParameter[] cmdParms) +138
   UPCMS.Manage.SQLite.SQLiteHelper.ExecuteNonQuery(String connectionString, String commandText, CommandType commandType, SQLiteParameter[] cmdParms) +122
   UPCMS.Manage.SQLite.DAL.dal_base`1.update(IList`1 kv, String where) +1443
   UPCMS.Manage.SQLite.DAL.dal_base`1.update(String key, Object value, String where) +166
   UPCMS.Manage.SQLite.BLL.bll_tb_article.click(Int32 id, Int32 clicks) +163
   UPCMS.Manage.Models.SQLiteAdapter.set_news_dt(Int32 id) +336
   UPCMS.Manage.Controllers.HomeController.Route(String viewName, String param) +2551
   lambda_method(Closure , ControllerBase , Object[] ) +147
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +181
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.<>c__DisplayClass15.b__12() +56
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
   System.Web.Mvc.<>c__DisplayClass17.b__14() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +190
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +311
   System.Web.Mvc.Controller.ExecuteCore() +105
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +88
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.b__5() +34
   System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +19
   System.Web.Mvc.Async.<>c__DisplayClass8`1.b__7(IAsyncResult _) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
   System.Web.Mvc.<>c__DisplayClasse.b__d() +31
   System.Web.Mvc.SecurityUtil.b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9687608
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.36480
Baidu
sogou