Server Error in '/' Application.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'e_Giris'' at line 1 (select kategori,aciklama From tblkategori where kategori='makale 40 Klinik_Pilates’e_Giris')

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.Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'e_Giris'' at line 1 (select kategori,aciklama From tblkategori where kategori='makale 40 Klinik_Pilates’e_Giris')

Source Error:


Line 80:         catch (MySqlException ex)
Line 81:         {
Line 82:             throw new Exception(ex.Message + " (" + sql + ")");
Line 83:         }
Line 84:         adapter.Dispose();

Source File: c:\home\pilatesfederasyonu.com\httpdocs\App_Code\Keskin.cs    Line: 82

Stack Trace:


[Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'e_Giris'' at line 1 (select kategori,aciklama From tblkategori where kategori='makale 40 Klinik_Pilates’e_Giris')]
   Keskin.GetDataSet_acess(String sql) in c:\home\pilatesfederasyonu.com\httpdocs\App_Code\Keskin.cs:82
   kategori.Page_Load(Object sender, EventArgs e) in c:\home\pilatesfederasyonu.com\httpdocs\kategori.aspx.cs:32
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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