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

'Title' 附近有语法错误。

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

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

源错误:

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

堆栈跟踪:


[SqlException (0x80131904): 'Title' 附近有语法错误。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1099
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +58
   System.Data.SqlClient.SqlDataReader.get_MetaData() +112
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6291924
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +6292993
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +211
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +19
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +19
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +221
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +579
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +181
   Jecda.SQLServerDAL.DbHelperSQL.ExecuteTable(CommandType cmdType, String cmdText, SqlParameter[] param) in F:\work\chinairn20170803报告推广\Jecda.SqlServerDAL\DbHelperSQL.cs:712
   Jecda.Web.BaseClass.PageList.GetDataTable(String strwhere, String tblName) in F:\work\chinairn更新报告首页\Jecda.Web\bin\BaseClass\PageList.cs:94
   Jecda.Web.UserControls.PageList.CountTable(String strWhere, String tableName) in F:\work\chinairn更新报告首页\Jecda.Web\UserControls\PageList.ascx.cs:122
   Jecda.Web.UserControls.PageList.BindDate2016(String Type) in F:\work\chinairn更新报告首页\Jecda.Web\UserControls\PageList.ascx.cs:407
   Jecda.Web.UserControls.PageList.BindViewDesc2016(String Type) in F:\work\chinairn更新报告首页\Jecda.Web\UserControls\PageList.ascx.cs:714
   Jecda.Web.BaseClass.SearchList2016.GetNewsList(String Keyword, String PageId, String PageSize, String ClassType, String& PageHtml) in F:\work\chinairn更新报告首页\Jecda.Web\bin\BaseClass\SearchList2016.cs:128
   Jecda.Web.BaseClass.SearchList2016.GetNewsList(String Keyword, String PageId, String PageSize, String ClassType) in F:\work\chinairn更新报告首页\Jecda.Web\bin\BaseClass\SearchList2016.cs:29
   Jecda.Web.searchnew.Page_Load(Object sender, EventArgs e) in F:\work\chinairn更新报告首页\Jecda.Web\searchnew.aspx.cs:48
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


版本信息: Microsoft .NET Framework 版本:2.0.50727.5456; ASP.NET 版本:2.0.50727.5420
Baidu