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 212:        
Line 213:      }
Line 214:      foreach (DataRow row in redirtable.Select("fromurl='"+path+"'"))
Line 215:      {
Line 216:        if (row["fromurl"].ToString() == path)

Source File: c:\proj\flytur.no\App_Code\HttpModules\UrlRewriter.cs    Line: 214

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
   UrlRewriter.Rewrite_BeginRequest(Object sender, EventArgs args) in c:\proj\flytur.no\App_Code\HttpModules\UrlRewriter.cs:214
   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.4330.0