2013-04-08 56 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中的端口

这应该可以解决问题。