Errore server nell'applicazione '/'.

Errore di sintassi (operatore mancante) nell'espressione della query 'id='.

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: System.Data.OleDb.OleDbException: Errore di sintassi (operatore mancante) nell'espressione della query 'id='.

Errore nel codice sorgente:


Riga 473:		sql_str = "select " & campi & " from " & tabella & " where " & where
Riga 474:		Dim cmd As New OleDbCommand(sql_str, _cn)
Riga 475:		datiletti = cmd.ExecuteReader()
Riga 476:		Dim i
Riga 477:		Dim valori_letti As New Hashtable

File di origine: c:\inetpub\siti\credaro_comune\App_Code\Classi_personalizzate.vb    Riga: 475

Traccia dello stack:


[OleDbException (0x80040e14): Errore di sintassi (operatore mancante) nell'espressione della query 'id='.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1217021
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +256
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +216
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +60
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +164
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +115
   System.Data.OleDb.OleDbCommand.ExecuteReader() +12
   DBgest.estraival(Object tabella, Object where, Object campi) in c:\inetpub\siti\credaro_comune\App_Code\Classi_personalizzate.vb:475
   MasterPage.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\siti\credaro_comune\MasterPage.master.vb:8
   System.Web.UI.Control.OnPreRender(EventArgs e) +9883650
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


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