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

')' 附近有语法错误。

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

异常详细信息: System.Data.SqlClient.SqlException: ')' 附近有语法错误。

源错误:


行 272:                    new SqlParameter("@pshow", true)
行 273:                                     };
行 274:        SqlDataReader odr = BLLhelp.GetList("product", "top 8 ID,pname,cclass,urlkey,pthumb1", strWhere + "ID in (" + reid + ") and cln=@cln and pshow=@pshow order by porder asc, ID desc", parameters);
行 275:        string href = "", strName;
行 276:        lt_pro.Append("<ul>");

源文件: f:\usr\localuser\syw7992750001\index\newsshow.aspx.cs    行: 274

堆栈跟踪:


[SqlException (0x80131904): ')' 附近有语法错误。]
   Maticsoft.DBUtility.DbHelperSQL.ExecuteReader(String SQLString, SqlParameter[] cmdParms) in F:\c程序\m名匠\名匠底层\CodematicDemo\DBUtility\DbHelperSQL.cs:824
   Maticsoft.DAL.publicHelp.GetList(String table, String fields, String strWhere, SqlParameter[] parameters) in F:\c程序\m名匠\名匠底层\CodematicDemo\DAL\publicHelp.cs:556
   Maticsoft.BLL.publicHelp.GetList(String table, String fields, String strWhere, SqlParameter[] parameters) in F:\c程序\m名匠\名匠底层\CodematicDemo\BLL\publicHelp.cs:166
   index_newsshow.load_RePro(String reid) in f:\usr\localuser\syw7992750001\index\newsshow.aspx.cs:274
   index_newsshow.content_load() in f:\usr\localuser\syw7992750001\index\newsshow.aspx.cs:60
   index_newsshow.Page_Load(Object sender, EventArgs e) in f:\usr\localuser\syw7992750001\index\newsshow.aspx.cs:34
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


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