Server Error in '/' Application.

Error in Like operator: the string pattern '%Visite%20guidate%' 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 '%Visite%20guidate%' is invalid.

Source Error:


Line 140:
Line 141:        If Categoria <> " Tutte le categorie" Then
Line 142:            ViewEventiCulturali.RowFilter = "it_Categorie LIKE '%" & Categoria & "%'"
Line 143:        End If
Line 144:        If Presso <> "Ovunque" Then

Source File: D:\inetpub\webs\milanofotografoit\SvagoCulturaEventiCulturali.aspx    Line: 142

Stack Trace:


[EvaluateException: Error in Like operator: the string pattern '%Visite%20guidate%' 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.svagoculturaeventiculturali_aspx.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\milanofotografoit\SvagoCulturaEventiCulturali.aspx:142
   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