SharePoint 2010 Search CoreResultsWebPart::OnInit: Exception initializing: System.NullReferenceException

After Configuring search fro SharePoint 2010 you might experience in error when you get to the search results page.

like”

CoreResultsWebPart::OnInit: Exception initializing: System.NullReferenceException:
Object reference not set to an instance of an object.
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)

Internal server error exception: System.NullReferenceException:
Object reference not set to an instance of an object.
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e) System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)

To nail it down i started figuring out couple of options to resolve this, let me walk through though the steps

Check for following settings under Central Administration and Click System Settings on the left and select Manage Services on Server and found them to be started

SharePoint Server Search

Search Query and Site Settings Service

Check the Search Server WebParts feature was activated on http://sharepointlovers.com (Site Actions –> Site Settings –> Site Collection features)

Check the Alternate Access Mappings if you have multiple zones

Create a new Search Service Application and re-entered the password for SecurityTokenServiceApplicationPool

Install  KB976462 – Sharepoint Shared Services Roll-up hotfix.  and finally

Option 1: Add this registry entry by PowerShell

New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name “DisableLoopbackCheck” -value “1” -PropertyType dword

Option 2: Add this registry entry manually

Click Start, click Run, type regedit, and then click OK
In Registry Editor, locate the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
Right-click Lsa, point to New, and then click DWORD Value. (In Win 2008, its DWORD 32bit)
Type DisableLoopbackCheck, and then press ENTER.
Right-click DisableLoopbackCheck, and then click Modify.
In the Value data box, type 1 and then click OK.
Quit Registry Editor.
You may need to restart your server.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Bitnami