Server Error in '/' Application.

Syntax error (comma) in query expression 'lingua=1,0 and versione = '0'  and ( pagina='default.aspx' or pagina='template'  or pagina='' )'.

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.Data.OleDb.OleDbException: Syntax error (comma) in query expression 'lingua=1,0 and versione = '0'  and ( pagina='default.aspx' or pagina='template'  or pagina='' )'.

Source Error:


Line 345:		Dim datiletti As OleDbDataReader
Line 346:		Dim cmd As New OleDbCommand(_sql, _cn)
Line 347:		datiletti = cmd.ExecuteReader()
Line 348:		Return datiletti
Line 349:	End Function

Source File: C:\PRINCIPALE\SITI\OHM_def\App_Code\Classi_personalizzate.vb    Line: 347

Stack Trace:


[OleDbException (0x80040e14): Syntax error (comma) in query expression 'lingua=1,0 and versione = '0'  and ( pagina='default.aspx' or pagina='template'  or pagina='' )'.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1553134
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +323
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +225
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +203
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +143
   DBgest.apridati() in C:\PRINCIPALE\SITI\OHM_def\App_Code\Classi_personalizzate.vb:347
   dizionario..ctor(String pagine) in C:\PRINCIPALE\SITI\OHM_def\App_Code\Classi_personalizzate.vb:300
   _home..ctor() in C:\PRINCIPALE\SITI\OHM_def\default.aspx.vb:3
   ASP.default_aspx..ctor() in C:\PRINCIPALE\SITI\OHM_def\default.aspx.vb:912304
   __ASP.FastObjectFactory_app_web_default_aspx_cdcab7d2_a5nlg_qy.Create_ASP_default_aspx() +63
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +142
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +46
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +418
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


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