2013-04-08 54 views
0

我們正在爲SOLR配置獲取以下錯誤。對此有任何想法。SOLR錯誤異常問題

System.TypeInitializationException: The type initializer for org.apache.solr.SolrSharp.Configuration.SolrSearchers threw an exception. ---> System.Configuration.ConfigurationErrorsException: Solr configuration error 
at org.apache.solr.SolrSharp.Configuration.SolrSearchers..cctor() 

感謝您的時間和幫助。

+0

你可以發佈你的配置文件的核心? – andrewWinn 2013-04-08 17:14:53

+0

這裏是web.config文件條目

user1655702 2013-04-08 18:13:08

+0

沒有一個來自Solr服務器。這聽起來像是核心的XML配置文件格式不正確。 – andrewWinn 2013-04-10 17:32:11

回答

0

我想你沒有啓動(或沒有安裝)你的Solr服務器。

  1. 下載最新的Apache Solr
  2. 版本在Solr Tutorial 按照指示啓動服務器的默認端口是8983,所以你應該能夠在本地主機到達你的Solr服務器:8983/Solr的
  3. 在應用.config文件在SolrSharp中,替換服務器的url中的端口

這應該可以解決問題。