调试wqshop5.1出现以下错误

后台管理商品类别,当删除所有商品分类时出错:求解!
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.OleDb.OleDbException: 语法错误 (操作符丢失) 在查询表达式 'CategoryID IN ()' 中。
源错误:
行 1: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="CustomProducts.ascx.cs" Inherits="wqshop.Modules.CustomProducts" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>行 2: <%BindCustomProductList(4,2,"dlCustomProductts","New");%>行 3: <asp ataList ID="dlCustomProductts"行 4: CellPadding="4" |
源文件: d:\wwwroot\shopwangqicom2\wwwroot\Template\freemodelv10\Modules\CustomProducts1.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 XpShop.Utility.ProductDB.GetTopList(Int32 catID, String type, Int32 topNum) wqshop.Modules.CustomProducts.BindCustomProductList(Int32 catID, Int32 topNum, String controlName, String sort) ASP.CustomProducts1_ascx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in d:\wwwroot\shopwangqicom2\wwwroot\Template\freemodelv10\Modules\CustomProducts1.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\freemodelv10\Default.aspx:317 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.2300; ASP.NET 版本:1.1.4322.2300