Server Error in '/' Application.

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

Source Error:


Line 395:        }
Line 396:
Line 397:        if (ds.Tables[0].Rows.Count > 0 && ds.Tables[0].Select("OldPage = '" + fullPath + "'").ToList().Count > 0)
Line 398:        {
Line 399:            var results = ds.Tables[0].Select("OldPage = '" + fullPath + "'").FirstOrDefault();

Source File: c:\inetpub\wwwroot\revcue\Global.asax    Line: 397

Stack Trace:


[SyntaxErrorException: Syntax error: Missing operand after 's' operator.]
   System.Data.ExpressionParser.Parse() +3042
   System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +165
   System.Data.Select..ctor(DataTable table, String filterExpression, String sort, DataViewRowState recordStates) +116
   System.Data.DataTable.Select(String filterExpression) +87
   ASP.global_asax.Handle301Redirects(Int32 templateId) in c:\inetpub\wwwroot\revcue\Global.asax:397
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in c:\inetpub\wwwroot\revcue\Global.asax:107
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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