Server Error in '/' Application.

')' 附近有语法错误。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: ')' 附近有语法错误。

Source Error:


Line 10:   pagesize = 12
Line 11: 
Line 12:         MyBase.OnInit(e)
Line 13:        If iscache Then
Line 14:            Exit Sub

Source File: D:\b2b2c20231108\shops\specialtyList.aspx    Line: 12

Stack Trace:


[SqlException (0x80131904): ')' 附近有语法错误。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +2030802
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5009584
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2275
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33
   System.Data.SqlClient.SqlDataReader.get_MetaData() +86
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +311
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +987
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteScalar() +139
   TourEx.DBUtility.DbHelper.ExecuteScalar(DbConnection connection, CommandType commandType, String commandText, DbParameter[] commandParameters) +190
   TourEx.DBUtility.DbHelper.ExecuteScalar(CommandType commandType, String commandText, DbParameter[] commandParameters) +271
   TourEx.DBUtility.DbHelper.ExecuteScalar(CommandType commandType, String commandText) +45
   TourEx.DBUtility.DbHelper.ExecuteScalarToStr(CommandType commandType, String commandText) +55
   TourEx.DAL.General.Count(String tblName, String strWhere) +61
   TourEx.BLL.General.Count(String tblName, String strWhere) +5
   TourEx.Web._shop_specialtylist.ShowPage() +2199
   TourEx.Pages.BasePage.OnInit(EventArgs 
P) +22
   ASP.shops_specialtylist_aspx.OnInit(EventArgs e) in D:\b2b2c20231108\shops\specialtyList.aspx:12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +140
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1