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

SQLite error
near "and": syntax error

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

异常详细信息: System.Data.SQLite.SQLiteException: SQLite error
near "and": syntax error

源错误:

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

堆栈跟踪:


[SQLiteException (0x80004005): SQLite error
near "and": syntax error]
   QiGaoCms.Data.SqlLiteHelper.ExecuteDataset(CommandType commandType, String commandText, SQLiteParameter[] cmdParms) in E:\pronet\custom\gwjiaodai.com\jkmifengquan.com\web\QiGaoCms.Data\Global\SqlLiteHelper.cs:500
   QiGaoCms.Data.SqlLiteHelper.ExecuteDataset(String commandText) in E:\pronet\custom\gwjiaodai.com\jkmifengquan.com\web\QiGaoCms.Data\Global\SqlLiteHelper.cs:397
   QiGaoCms.Data.SqlLite.DataProvider.GetNewsByCondition(Int32 topNum, String searchCondition) in E:\pronet\custom\gwjiaodai.com\jkmifengquan.com\web\QiGaoCms.Data.SqlLite\News\NewsManage.cs:147
   QiGaoCms.Data.Newss.GetNewsByCondition(Int32 topNum, String searchCondition) in E:\pronet\custom\gwjiaodai.com\jkmifengquan.com\web\QiGaoCms.Data\News\Newss.cs:114
   QiGaoCms.Main.Newss.GetNewsByCondition(Int32 topNum, String searchCondition) in E:\pronet\custom\gwjiaodai.com\jkmifengquan.com\web\QiGaoCms.Main\News\Newss.cs:93
   QiGaoCms.Web.UI.Commands.getNews(Int32 topNum, String condition) in E:\pronet\custom\gwjiaodai.com\jkmifengquan.com\web\QiGaoCms.Web.UI\PageTemplateParse.cs:841

[ParseException: SQLite error
near "and": syntax error]
   QiGaoCms.QNTemplate.Template.Render(TextWriter writer) in E:\pronet\custom\gwjiaodai.com\web\QiGaoCms.QNTemplate\Template.cs:81
   QiGaoCms.Web.UI.Site.NewsDetail.ProcessRequest(HttpContext context) in E:\pronet\custom\gwjiaodai.com\jkmifengquan.com\web\QiGaoCms.Web.UI\Site\NewsDetail.cs:73
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


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