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

语法错误。 在查询表达式 '1=1  and AuditFlag=1 and SiteID=1 and (ParentID=202 or CategoryID=202) and ID not in ( select top -2052741904 ID from View_Article_Case where 1=1  and AuditFlag=1 and SiteID=1 and (ParentID=202 or CategoryID=202) order by  ID desc)' 中。

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

异常详细信息: System.Exception: 语法错误。 在查询表达式 '1=1  and AuditFlag=1 and SiteID=1 and (ParentID=202 or CategoryID=202) and ID not in ( select top -2052741904 ID from View_Article_Case where 1=1  and AuditFlag=1 and SiteID=1 and (ParentID=202 or CategoryID=202) order by  ID desc)' 中。

源错误:

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

堆栈跟踪:


[Exception: 语法错误。 在查询表达式 '1=1  and AuditFlag=1 and SiteID=1 and (ParentID=202 or CategoryID=202) and ID not in ( select top -2052741904 ID from View_Article_Case where 1=1  and AuditFlag=1 and SiteID=1 and (ParentID=202 or CategoryID=202) order by  ID desc)' 中。]
   ZH.DbUtility.OleDbHelper.GetDataSet(String sqlString, CommandType cmdType, OleDbParameter[] cmdParms) in E:\电脑学习\CMS\ZH.CMS\V1.2\ZH.DbUtility\OleDbHelper.cs:208
   ZH.DAL.CurrencyPageDAL.CurrencyPageList(String strTableName, String strGetFields, String keyColumnName, Int32 pageSize, Int32 pageIndex, String strOrderfield, String strWhere) +833
   ZH.TemplateEngine.Case.GetCurrentPageList(Int32 pPageSize, Int32 pPageIndex, String strWhere, String pOrderField) +318
   ZH.TemplateEngine.Case.GetPageList(Int32 pPageSize, Int32 pPageIndex, Int32 pParentID, Int32 pCategory, String pOrderField) +601

[MethodInvocationException: Invocation of method 'GetPageList' in  ZH.TemplateEngine.Case threw exception System.Exception : 语法错误。 在查询表达式 '1=1  and AuditFlag=1 and SiteID=1 and (ParentID=202 or CategoryID=202) and ID not in ( select top -2052741904 ID from View_Article_Case where 1=1  and AuditFlag=1 and SiteID=1 and (ParentID=202 or CategoryID=202) order by  ID desc)' 中。]
   NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context) in C:\Users\Stone_W\Desktop\NVelocity 1.1.1\src\NVelocity\Runtime\Parser\Node\ASTMethod.cs:240
   NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context) in C:\Users\Stone_W\Desktop\NVelocity 1.1.1\src\NVelocity\Runtime\Parser\Node\ASTReference.cs:177
   NVelocity.Runtime.Parser.Node.ASTReference.Value(IInternalContextAdapter context) in C:\Users\Stone_W\Desktop\NVelocity 1.1.1\src\NVelocity\Runtime\Parser\Node\ASTReference.cs:287
   NVelocity.Runtime.Directive.Foreach.GetIterator(IInternalContextAdapter context, INode node) in C:\Users\Stone_W\Desktop\NVelocity 1.1.1\src\NVelocity\Runtime\Directive\Foreach.cs:173
   NVelocity.Runtime.Directive.Foreach.Render(IInternalContextAdapter context, TextWriter writer, INode node) in C:\Users\Stone_W\Desktop\NVelocity 1.1.1\src\NVelocity\Runtime\Directive\Foreach.cs:277
   NVelocity.Runtime.Parser.Node.ASTDirective.Render(IInternalContextAdapter context, TextWriter writer) in C:\Users\Stone_W\Desktop\NVelocity 1.1.1\src\NVelocity\Runtime\Parser\Node\ASTDirective.cs:64
   NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer) in C:\Users\Stone_W\Desktop\NVelocity 1.1.1\src\NVelocity\Runtime\Parser\Node\SimpleNode.cs:230
   NVelocity.Template.Merge(IContext context, TextWriter writer) in C:\Users\Stone_W\Desktop\NVelocity 1.1.1\src\NVelocity\Template.cs:177
   VelocityHelper.BuildString(String templateFile) +120
   _Default.Display(String templateFile, String modelType, Int32 ColumnID, Int32 ID) +148
   _Default.LoadDefault() +2128
   _Default.Page_Load(Object sender, EventArgs e) +88
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   BasePage.OnLoad(EventArgs e) +164
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本信息: Microsoft .NET Framework 版本:2.0.50727.8806; ASP.NET 版本:2.0.50727.8762