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

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 '-10,10' 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 '-10,10' at line 1

原始程式錯誤:


行 121:        System.Diagnostics.Debug.WriteLine("SQL=" + _SQLStr);
行 122:        System.Diagnostics.Debug.WriteLine(ex);
行 123:        throw ex;
行 124:      }
行 125:    }

原始程式檔: d:\WEB\MoneyLink\APP_Code\LecturesInfo.cs    行: 123

堆疊追蹤:


[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 '-10,10' at line 1]
   LecturesInfo.getDataRow(String _SQLStr) in d:\WEB\MoneyLink\APP_Code\LecturesInfo.cs:123
   LecturesInfo.GetLecturesInfo(String PayType, Int32 _StartCount, Int32 _ShowCount) in d:\WEB\MoneyLink\APP_Code\LecturesInfo.cs:60
   LecturesInfo.GetFreeInfos(Int32 _StartCount, Int32 _ShowCount) in d:\WEB\MoneyLink\APP_Code\LecturesInfo.cs:40
   LecturesMedia_Index.PageAssemblyForLectures() in d:\WEB\MoneyLink\LecturesMedia\index.aspx.cs:114
   LecturesMedia_Index.Page_Load(Object sender, EventArgs e) in d:\WEB\MoneyLink\LecturesMedia\index.aspx.cs:40
   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.4667.0