Errore server nell'applicazione '/'.

Unknown column 'n' in 'where clause'

Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere la traccia dello stack.

Dettagli eccezione: MySql.Data.MySqlClient.MySqlException: Unknown column 'n' in 'where clause'

Errore nel codice sorgente:


Riga 25:             MySql.Data.MySqlClient.MySqlCommand Cmd = new MySql.Data.MySqlClient.MySqlCommand(SQLCode, conn);
Riga 26:             conn.Open();
Riga 27:             datareader = Cmd.ExecuteReader();
Riga 28:             
Riga 29:             if (datareader.HasRows)

File di origine: e:\hosts\portali\doveabitare.it\inc_topbarsingleagenzia.ascx    Riga: 27

Traccia dello stack:


[MySqlException (0x80004005): Unknown column 'n' in 'where clause']
   MySql.Data.MySqlClient.MySqlStream.ReadPacket() +272
   MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId) +68
   MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId) +17
   MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) +100
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +761
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1585
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() +6
   ASP.inc_topbarsingleagenzia.Page_Load(Object sender, EventArgs e) in e:\hosts\portali\doveabitare.it\inc_topbarsingleagenzia.ascx:27
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


Informazioni di versione: Versione di Microsoft .NET Framework:4.0.30319; Versione di ASP.NET:4.7.4076.0