Server Error in '/' Application.

Syntax error: Missing operand after '' operator.

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.SyntaxErrorException: Syntax error: Missing operand after '' operator.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SyntaxErrorException: Syntax error: Missing operand after '' operator.]
   System.Data.ExpressionParser.Parse() +3293
   System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +156
   System.Data.DataView.set_RowFilter(String value) +194
   AFR.rpt.HTML_pics(DataTable imageT, String title, String where_clause, Int32 h, Int32 max_count) in F:\AFR\AFRV\AFR.rpt\rpt.cs:5015
   AFR.rpt.HTML_imgs(DataTable imageT, String title, String where_clause, Int32 h, Int32 max_count) in F:\AFR\AFRV\AFR.rpt\rpt.cs:5006
   AFR.rpt_assort.generate(Int32 target_ID, Int32 dummy) in F:\AFR\AFRV\AFR.rpt\rpt_assort.cs:181
   AFR.rpt_assort..ctor(Int32 targetID) in F:\AFR\AFRV\AFR.rpt\rpt_assort.cs:23
   AFRX.assort.generate(Int32 ID) +120
   AFRX.assort.Page_Load(Object sender, EventArgs e) +1052
   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.4081.0