Server Error in '/' Application.

Error in Like operator: the string pattern '%Plants%20and%20flowers%' is invalid.

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.EvaluateException: Error in Like operator: the string pattern '%Plants%20and%20flowers%' is invalid.

Source Error:


Line 205:        Dim viewVociDaVisualizzare As New Data.DataView
Line 206:        viewVociDaVisualizzare.Table = objTable
Line 207:        viewVociDaVisualizzare.RowFilter = Filtrogenerale
Line 208:
Line 209:        Dim viewPresenzaVoci As New Data.DataView

Source File: D:\inetpub\webs\milanofotografoit\englishFotografiaDettagliFoto.aspx    Line: 207

Stack Trace:


[EvaluateException: Error in Like operator: the string pattern '%Plants%20and%20flowers%' is invalid.]
   System.Data.LikeNode.AnalyzePattern(String pat) +1196810
   System.Data.LikeNode.Eval(DataRow row, DataRowVersion version) +332
   System.Data.DataExpression.Invoke(DataRow row, DataRowVersion version) +81
   System.Data.Index.AcceptRecord(Int32 record, IFilter filter) +103
   System.Data.Index.InitRecords(IFilter filter) +299
   System.Data.Index..ctor(DataTable table, Int32[] ndexDesc, IndexField[] indexFields, Comparison`1 comparison, DataViewRowState recordStates, IFilter rowFilter) +414
   System.Data.DataTable.GetIndex(IndexField[] indexDesc, DataViewRowState recordStates, IFilter rowFilter) +240
   System.Data.DataView.UpdateIndex(Boolean force, Boolean fireEvent) +165
   System.Data.DataView.UpdateIndex(Boolean force) +12
   System.Data.DataView.SetIndex2(String newSort, DataViewRowState newRowStates, IFilter newRowFilter, Boolean fireEvent) +113
   System.Data.DataView.SetIndex(String newSort, DataViewRowState newRowStates, IFilter newRowFilter) +17
   System.Data.DataView.set_RowFilter(String value) +170
   ASP.englishfotografiadettaglifoto_aspx.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\milanofotografoit\englishFotografiaDettagliFoto.aspx:207
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175