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 '-bilimleriogrenme-psikolojisi WHERE Unite='Bilissel Gelisim Test2' and SoruSayac' at line 1

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: MySql.Data.MySqlClient.MySqlException: 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 '-bilimleriogrenme-psikolojisi WHERE Unite='Bilissel Gelisim Test2' and SoruSayac' at line 1

Source Error:


Line 1075:
Line 1076:                MySqlDataReader dr;
Line 1077:                dr = komut.ExecuteReader();
Line 1078:                while (dr.Read())
Line 1079:                {

Source File: c:\Inetpub\vhosts\onlinesoru.com\sorumarket.com\SorularEgitim.aspx.cs    Line: 1077

Stack Trace:


[MySqlException (0x80004005): 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 '-bilimleriogrenme-psikolojisi WHERE Unite='Bilissel Gelisim Test2' and SoruSayac' at line 1]
   MySql.Data.MySqlClient.MySqlStream.ReadPacket() +332
   MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId) +359
   MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) +115
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +1045
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +2117
   SorularEgitim.SoruListele() in c:\Inetpub\vhosts\onlinesoru.com\sorumarket.com\SorularEgitim.aspx.cs:1077
   SorularEgitim.Page_Load(Object sender, EventArgs e) in c:\Inetpub\vhosts\onlinesoru.com\sorumarket.com\SorularEgitim.aspx.cs:48
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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