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

语法错误 (操作符丢失) 在查询表达式 'CategoryID IN ()' 中。

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

异常详细信息: System.Data.OleDb.OleDbException: 语法错误 (操作符丢失) 在查询表达式 'CategoryID IN ()' 中。

源错误:


行 1:  <%@ Control Language="c#" AutoEventWireup="false" Codebehind="CustomProducts.ascx.cs" Inherits="wqeshop.Modules.CustomProducts" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
行 2:  <%BindCustomProductList(8,6,"dlCustomProductts","New");%>
行 3:  
行 4:  <asp:DataList ID="dlCustomProductts"

源文件: d:\wwwroot\shopwangqicom2\wwwroot\Template\vipv3\Modules\CustomProducts2.ascx    行: 2

堆栈跟踪:


[OleDbException (0x80040e14): 语法错误 (操作符丢失) 在查询表达式 'CategoryID IN ()' 中。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr) +41
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +174
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +92
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +65
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +112
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +68
   wqeshop.Utility.ProductDB.GetTopList(Int32 catID, String type, Int32 topNum)
   wqeshop.Modules.CustomProducts.BindCustomProductList(Int32 catID, Int32 topNum, String controlName, String sort)
   ASP.CustomProducts2_ascx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in d:\wwwroot\shopwangqicom2\wwwroot\Template\vipv3\Modules\CustomProducts2.ascx:2
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
   ASP.Default_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in d:\wwwroot\shopwangqicom2\wwwroot\Template\vipv3\Default.aspx:282
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
   System.Web.UI.Page.ProcessRequestMain() +1880


版本信息: Microsoft .NET Framework 版本:1.1.4322.2407; ASP.NET 版本:1.1.4322.2407