Enable caching & special character facet value related error

Jan 20, 2009 at 1:30 PM
Edited Jan 20, 2009 at 1:32 PM
Hi,
I'm facing two problems after installing Faceted Search web part v2.5.

Error#1) On turning the 'Enable Caching' on from the web part property it is throwing error on Search Result page change and the web part control
is appearing as a ! mark red icon, with an error like 'object reference not set to an instance of an object'
Error Description from Application log is like:

Message: HandlingInstanceID: 34db2c26-9c7e-4b12-9152-5f3bbc387713
An exception of type 'System.NullReferenceException' occurred and was caught.
-----------------------------------------------------------------------------
01/20/2009 19:49:15
Type : System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.
Source : Microsoft.SharePoint.Portal.ExtendedSearch
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Web.UI.WebControls.DataList CreateFacetsList()
Stack Trace :    at Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchFacets.CreateFacetsList()
   at Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchFacets.CreateChildControls()



Error#2) If any facet value contains a special character (in my case '&') then the Breadcrumb and faceted search web part is ending up with error like 'An error Occured while parsing Entity Name. Line 1, position 14' 

Error found in application Log is like:

Event Type: Error
Event Source: Enterprise Library Logging
Event Category: None
Event ID: 100
Date:  1/20/2009
01/20/2009 19:35:29
Type : System.Xml.XmlException, System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : An error occurred while parsing EntityName. Line 1, position 14.
Source : System.Xml
Help link :
LineNumber : 1
LinePosition : 14
SourceUri :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void Throw(System.Exception)
Stack Trace :    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseEntityName()
   at System.Xml.XmlTextReaderImpl.ParseEntityReference()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt)
   at System.Xml.XmlElement.set_InnerXml(String value)
   at Microsoft.SharePoint.Portal.ExtendedSearch.Common.SearchQuery.GetXml()
   at Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchQueryWebPart.get_Query()
   at Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchFacets.CreateChildControls()

Additional Info:

MachineName :
TimeStamp : 1/20/2009 2:05:29 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009

Category: General
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling


=================

can anyone suggest any workaround on the above errors?

Feb 7, 2009 at 10:17 AM
problem 2 is posted on the issuelist at http://www.codeplex.com/FacetedSearch/WorkItem/View.aspx?WorkItemId=6963
Feb 9, 2009 at 4:32 AM

Thanks peterdk for your reply.

BTW I have downloaded the .patch file. But how to run it on my existing MOSS setup where I'm using Faceted Search (2.5)??

Please help.