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

database disk image is malformed
database disk image is malformed

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

异常详细信息: System.Data.SQLite.SQLiteException: database disk image is malformed
database disk image is malformed

源错误:

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

堆栈跟踪:


[SQLiteException (0xb): database disk image is malformed
database disk image is malformed]
   System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt) +402
   System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt) +246
   System.Data.SQLite.SQLiteDataReader.NextResult() +383
   System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) +269
   System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) +45
   System.Data.SQLite.SQLiteCommand.ExecuteReader() +21
   SQLiteSugar.SqlHelper.GetReader(String sql, SQLiteParameter[] pars) +299
   SQLiteSugar.QueryableExtensions.ToList(Queryable`1 queryable) +205
   常规站.UI.yytHelper.content_list(Int32 catid, Int32 top, String where) +1466

[MethodInvocationException: Invocation of method 'content_list' in  常规站.UI.yytHelper threw exception System.Data.SQLite.SQLiteException : database disk image is malformed
database disk image is malformed]
   NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context) +1002
   NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context) +447
   NVelocity.Runtime.Parser.Node.ASTReference.Value(IInternalContextAdapter context) +23
   NVelocity.Runtime.Parser.Node.ASTSetDirective.Render(IInternalContextAdapter context, TextWriter writer) +23
   NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer) +66
   NVelocity.Runtime.Directive.Foreach.Render(IInternalContextAdapter context, TextWriter writer, INode node) +393
   NVelocity.Runtime.Parser.Node.ASTDirective.Render(IInternalContextAdapter context, TextWriter writer) +57
   NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer) +66
   NVelocity.Template.Merge(IContext context, TextWriter writer) +139
   常规站.UI.TemplateHelper.BuildString(String templateFileName) +134
   常规站.Index.DisplayPage(String templateFile) +78
   常规站.Index.LoadDefault() +35
   常规站.Index.DisplayPage() +462
   常规站.Index.Page_Load(Object sender, EventArgs e) +326
   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.3429.0