NullReferenceException SearchFacets

Nov 24, 2009 at 10:20 AM

Hi,

I’ve installed the solution with help of the guide, but I cannot get the SearchFacets webpart to work. When I click it in the web part gallery, an unknown error is displayed and the log file of SharePoint throws a nullreferenceexception.

Also, above the null reference exception, the following lines are logged:

11/24/2009 12:05:15.49 w3wp.exe (0x3280) 0x3E70 Search Server Common MS Search Query Processor 0 High Keyword query id: 0x3e700009, text: MSDNRank1

11/24/2009 12:05:15.49 w3wp.exe (0x3280) 0x3E70 Search Server Common MS Search Query Processor 0 High Flushing SQL session cache. - File:d:\office\source\search\ytrip\tripoli\icommand\qpcache.cxx Line:1841

11/24/2009 12:05:15.55 mssearch.exe (0x4994) 0x02C4 Search Server Common Query 0 High TraceQuery ID: 1047527433, text: MSDN - File:d:\office\source\search\ytrip\tripoli\cifrmwrk\srequest.cxx Line:1739

11/24/2009 12:05:16.47 mssearch.exe (0x4994) 0x02C4 Search Server Common Exceptions 0 Monitorable <Exception><HR>0xc0000023</HR><eip>0000000001D624F6</eip><module>d:\office\source\search\ytrip\tripoli\h\tblalloc.hxx</module><line>540</line></Exception>

11/24/2009 12:05:16.47 mssearch.exe (0x4994) 0x02C4 Search Server Common MS Search Query Processor 0 High OutputQueryStatistic: QueryId 0x3e700009 time 922 ms - File:d:\office\source\search\ytrip\tripoli\cifrmwrk\srequest.cxx Line:5623

11/24/2009 12:05:16.58 w3wp.exe (0x3280) 0x3E70 Search Server Common MS Search Query Processor 0 High QueryID: 0x3e700009. Completed query execution with timings: 1094 1047 1000 953 937 157 - File:d:\office\source\search\ytrip\tripoli\icommand\qp.cxx Line:1757

11/24/2009 12:05:16.67 w3wp.exe (0x3280) 0x3E70 Search Server Common MS Search Query Processor 0 High Keyword query id: 0x3e70000a, text: MSDNRank1

11/24/2009 12:05:16.67 mssearch.exe (0x4994) 0x02C4 Search Server Common Query 0 High TraceQuery ID: 1047527434, text: MSDN - File:d:\office\source\search\ytrip\tripoli\cifrmwrk\srequest.cxx Line:1739

11/24/2009 12:05:16.67 mssearch.exe (0x4994) 0x02C4 Search Server Common Exceptions 0 Monitorable <Exception><HR>0xc0000023</HR><eip>0000000001D624F6</eip><module>d:\office\source\search\ytrip\tripoli\h\tblalloc.hxx</module><line>540</line></Exception>

11/24/2009 12:05:16.67 mssearch.exe (0x4994) 0x02C4 Search Server Common MS Search Query Processor 0 High OutputQueryStatistic: QueryId 0x3e70000a time 0 ms - File:d:\office\source\search\ytrip\tripoli\cifrmwrk\srequest.cxx Line:5623

11/24/2009 12:05:16.78 w3wp.exe (0x3280) 0x3E70 Search Server Common MS Search Query Processor 0 High QueryID: 0x3e70000a. Completed query execution with timings: 110 63 16 16 0 110 - File:d:\office\source\search\ytrip\tripoli\icommand\qp.cxx Line:1757

I think the error isn’t in the webpart, but has something to do with the search service itself. Unfortunately I have no clue where to look for the solution or what I could try to fix it. Perhaps you could help me to look in the right direction?

I’ve got a two server farm (front-end with all applications, single SQL database server). Both machines are running x64 Windows 2003 R2 and I’ve updated the environment to the last SP2 + cumulative updates of November.

Coordinator
Nov 24, 2009 at 1:45 PM

Please clarify

What is your FS build #?

What is the lnaguage pack on WFE?

Leonid

Nov 24, 2009 at 2:18 PM

Hi Leonidly,

FS build is the latest one I could download (3.0.45573.0), we've installed a Dutch language pack and I'm using a Dutch site collection.

Coordinator
Nov 24, 2009 at 2:32 PM

Please provide exact steps to reproduce the errors, your web.config, and snapshots. You can email this to xsearch@microsoft.com.

We haven't tried the Faceted Search with Dutch LP. Can you test the same install on Ebglish LP and let me know the errors if any? BTW, do you have other errors in the Event log?

Leonid

Nov 24, 2009 at 2:37 PM

Ok, I'll send you an e-mail right away with the config file and error log. What do you mean by snapshots? A screendump of the error message?

I'll also try doing the same on an English site collection.

Nov 24, 2009 at 3:08 PM

Also tried on an English site collection, produces exactly the same error.

Coordinator
Nov 26, 2009 at 4:48 PM

I am afraid I don't have a solution for this problem. Hopefully someone in the community is familiar with this issue.

Leonid

Nov 30, 2009 at 6:39 AM

Do you have any lead on where I could start looking for a solution? Is there any way to debug the code or provide more in detail logging?

Dec 14, 2009 at 3:11 PM
Edited Dec 14, 2009 at 3:20 PM

Hello Leonid,

 

I found some more info! The actual exception being thrown is:

 

Object reference not set to an instance of an object. at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionHandlingConfigurationView.GetExceptionPolicyData(String policyName)
at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyCustomFactory.CreateObject(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache)
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy.PreBuildUp(IBuilderContext context)
at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
 

 

It seems the fault in the log files has different causes, I’m not sure if it has or hasn’t got anything to do with this.

 

 

As for the above exception, it clearly has something to do with the Enterprise Library, but I’m not really sure what could be wrong. I tried disabling logging but that didn’t do the trick.

 

 

Could you please help me out searching for the cause of this problem? I’ve attached my web.config file for reference.

 


Regards,

Jasper

Jan 10, 2010 at 1:48 PM

Hi again,

still didn't manage to get it to work. It seems something in the enterprise library is causing the webpart to fail, but I'm not sure on what that could be. Aren't there any developers around who could take a little peek in the code and tell me what I could do to find out what's bugging?

Jan 11, 2010 at 6:47 PM

I have the same issue as described above.

And in my case the problem was that I have extended an existing webApplication and the second config file has no information about enterprise library settings.

So I have merged the two config files and after that the webpart worked!

hope it helps someone.

greets

 

Jan 11, 2010 at 8:44 PM

Damn! You're definitely on to something here!

I've extended the web app to a second one which uses forms authentication instead of windows. Now I logged in as the forms administrator onto the forms auth based site, and voila; the webpart works! The main differences in the web.config files were the trust levels, it was set to custom in the forms app, the windows one was set to minimal. I hoped that would solve the entire thing, but unfortunately it doesn't.

I've merged the config files as far as I could. Now the only thing different is the method of authentication (forms vs. windows) and the fact that the forms app denies anonymous users where the windows app doesn't. I even tried setting the Windows app to deny anonymous users too, but that wouldn't change anything.

 

So now the question is: what it the difference messing up the webpart in one of two sites which should be the same? To make things clear: the forms based site displays a proper working search facets webpart, the windows authenticated site doesn't. Any ideas?

Jan 12, 2010 at 6:32 AM

I tried to extend the webapp to a third site, but that won't work either. I'm clueless where I should look.

Jan 21, 2010 at 1:55 PM

Finally found the solution. For anyone who's having the same troubles; please check out my blog post here: http://jsiegmund.wordpress.com/2010/01/21/sharepoint-site-not-reading-web-config/