SharePoint : Search queries fail with "The search request was unable to connect to the Search Service" error

Applies to: SharePoint Server 2010


Search results are not being returned.

Users receive the following message when performing a search query:

The following exception message may be displayed in the ULS log:

CoreResultsWebPart::OnInit: Exception initializing: Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException: The search request was unable to connect to the Search Service.
at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.GetProxy(SPServiceContext ServiceContext)
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)


The Search Service Application Proxy does not exist in the farm. The Search Service Application Proxy is responsible for the communication between the WFE's search web part and the Search Service Application on the application server.


If the Search Service Application does not have a proxy then create a new proxy using PowerShell cmdlets:

$searchServiceApp = Get-SPEnterpriseSearchServiceApplication

New-SPEnterpriseSearchServiceApplicationProxy -SearchApplication $searchServiceApp

More Information