Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Content Search, Rebuild Index error

I am new to Sitecore and got a task to build the search using SiteCore 7 API. getting following error on search result query execution.

System.ArgumentNullException: Value cannot be null. Parameter name:
fieldNameTranslator

error raised from following line

IQueryable<SearchResultItem> results = context.GetQueryable<SearchResultItem>();

stack says

Sitecore.ContentSearch.Linq.Solr.SolrIndexParameters..ctor(IIndexValueFormatter valueFormatter, IFieldQueryTranslatorMap`1 fieldQueryTranslators, FieldNameTranslator fieldNameTranslator, IExecutionContext[] executionContexts) +284

I have logged on to content management system and in Index Manager I am trying to rebuild index of sitecore_web_index but I get following error

Job started: Index_Update_IndexName=sitecore_web_index|#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Sitecore.Exceptions.ProviderConfigurationException: Solr operations unavailable. Please check your global.asax,
like image 721
Ali Avatar asked May 08 '14 05:05

Ali


1 Answers

  • Check whether you can access Solr from a machine that hosts Sitecore app.
  • Make sure that ContentSearch.Solr.ServiceBaseAddress setting points to a right Solr resource
  • If your solution uses IoC, make sure that there is only one instance of IoC container defined for your application. If needed move container initialization to Application_Start method.
like image 72
ishara Avatar answered Oct 20 '22 11:10

ishara