'/' 應用程式中發生伺服器錯誤。

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1000'' Order By Ht_Date DESC' at line 1

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1000'' Order By Ht_Date DESC' at line 1

原始程式錯誤:

在執行目前 Web 要求期間,產生未處理的例外狀況。如需有關例外狀況來源與位置的資訊,可以使用下列的例外狀況堆疊追蹤取得。

堆疊追蹤:


[MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1000'' Order By Ht_Date DESC' at line 1]
   MySql.Data.MySqlClient.MySqlStream.ReadPacket() +389
   MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId) +379
   MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) +119
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +1046
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +2396
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +214
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +180
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +126
   Buddha_Vips.Database.MySqlDB.ExecuteDataSet(String cmdText, CommandType cmdType, MySqlParameter[] commandParameters) in D:\工作專案\真圓靈性成長中心\Git專案\vips.buddha.web\Buddha_Vips\DB\MySqlDB.cs:236
   Buddha_Vips.HeEditByUser.Page_Load(Object sender, EventArgs e) in D:\工作專案\真圓靈性成長中心\Git專案\vips.buddha.web\Buddha_Vips\HeEditByUser.aspx.cs:41
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4690.0