Facet Search with special characters

Nov 14, 2008 at 8:18 AM
When a facet has an & in the name an you try to filter on the fact, I get an unhandled exception.  I see there is another post related to Danish characters http://www.codeplex.com/FacetedSearch/Thread/View.aspx?ThreadId=32459   Anyone have a solution to this problem?

An error occurred while parsing EntityName. Line 1, position 22.
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.Xml.XmlException: An error occurred while parsing EntityName. Line 1, position 22.

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:


[XmlException: An error occurred while parsing EntityName. Line 1, position 22.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +90
   System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +127
   System.Xml.XmlTextReaderImpl.ParseEntityName() +64
   System.Xml.XmlTextReaderImpl.ParseEntityReference() +52
   System.Xml.XmlTextReaderImpl.Read() +481
   System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt) +138
   System.Xml.XmlElement.set_InnerXml(String value) +37
   Microsoft.SharePoint.Portal.ExtendedSearch.Common.SearchQuery.GetXml() +706
   Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchFacets.InitClientScripts() +981
   Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchFacets.OnInit(EventArgs e) +245
   System.Web.UI.Control.InitRecursive(Control namingContainer) +321
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +221
   System.Web.UI.ControlCollection.Add(Control child) +146
   System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart) +247
   System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPart(WebPart webPart) +97
   System.Web.UI.WebControls.WebParts.WebPartManager.AddWebPart(WebPart webPart) +52
   System.Web.UI.WebControls.WebParts.WebPartManagerInternals.AddWebPart(WebPart webPart) +11
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart) +161
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddDynamicWebPart(WebPart webPart) +69
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts) +7822
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts() +53
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +376
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +2062264
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +963

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433