Microsoft.SharePoint.SPEndpointAddressNotFoundException: There are no addresses available for this application

Microsoft.SharePoint.SPEndpointAddressNotFoundException: There are no addresses available for this application.  
 at Microsoft.Office.Server.Search.Internal.UI.SearchAdminPageBase.ErrorHandler(Object sender, EventArgs e)    
 at System.Web.UI.TemplateControl.OnError(EventArgs e)   
 at System.Web.UI.Page.HandleError(Exception e)   
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
 at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
 at System.Web.UI.Page.ProcessRequest()   
 at System.Web.UI.Page.ProcessRequest(HttpContext context)   
 at ASP._layouts_viewscopes_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\f9763a27\ff293fc2\App_Web_viewscopes.aspx.2a428413.q50wkr7w.0.cs:line 0   
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
To fix this go to SPCA -> Manage Services on Server and make sure the Search Query and Site Settings Service is Started
Advertisements

Creating Scope Rules on SearchScopes using PowerShell

I happened to maintain around 200 rules on 4 search scopes. Adding rules to Search Scopes is a slow process so I use this script to do it.

$scopeName = 'TestScopeName'
$siteUrl = 'http://intranet.contoso.com'
$searchSvcApp = 'Search Service Application'
$site= Get-SPSite $siteUrl
$searchContext = [Microsoft.Office.Server.Search.Administration.SearchContext]::GetContext($site)
$scopes = New-Object Microsoft.Office.Server.Search.Administration.Scopes($searchContext)
$myscope = $scopes.GetScope($siteUrl, $scopeName)
$ssa = Get-SPEnterpriseSearchServiceApplication -Identity $searchSvcApp

And now to actually add the rule to the search scope.

New-SPEnterpriseSearchQueryScopeRule -Url $siteUrl -Scope $myscope -RuleType Url -UrlScopeRuleType Folder -FilterBehavior Include -MatchingString 'http://intranet.contoso.com/ListOrLibraryName/' -SearchApplication $ssa
Test Search Scope Name

Test Search Scope Name

TaxonomyPicker Error on Event Logs

I always see this error on the logs. Though harmless it’s also useless.

TaxonomyPicker Error on Windows Event Logs

TaxonomyPicker Error on Windows Event Logs

To stop seeing this error just rename the TaxonomyPicker.ascx to something else.

cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES"
ren TaxonomyPicker.ascx TaxonomyPicker.ascx_useless