Hi All,
I am unable to get search results for an anonymous user and the search is working fine with the logged in user. I have set the Impersonate=”true” but still getting an exception as “Sorry something went wrong”.I have checked the ULS logs and the exception is
Getting results failed: System.InvalidOperationException: The security token request cannot be completed.
at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForServiceContext(Uri contextUri)
at Microsoft.SharePoint.SPChannelFactoryOperations.InternalCreateChannelActingAsLoggedOnUser[TChannel](ChannelFactory`1 factory, EndpointAddress address, Uri via)
at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.GetChannel(Uri address, Int32 timeoutInMilliseconds)
at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName)
at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOperation`1 webServiceCall)
at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties)
at Microsoft.Office.Server.Search.Query.Query.ExecuteQuery()
at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueryInternal(Query query)
at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQuery(Query query)
at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries(Dictionary`2 queries, Boolean handleExceptions)
at Microsoft.Office.Server.Search.WebControls.ScriptApplicationManager.GetSyncResult(String queryGroupName)
at Microsoft.Office.Server.Search.WebControls.DataProviderScriptWebPart.GetInitialResult()
Any suggestions for this.
Thanks & Regards,
Ramya.
HI Ramya,
Please check below links
or
http://wellytonian.com/2012/04/search-setup-for-anonymous-site-on-sharepoint-2010/
Hope it helps.