Solr does not initialize

ε祈祈猫儿з 提交于 2019-12-10 21:22:33

问题


I am just creating one application which is start Solr from code side using ASP.NET Web Application. http://localhost:8080/solr/admin/ this link working perfect but am i startup initialize from code side it's give me error like file not found exception so please help me

code line :: Startup.Init("http://localhost:8080/solr");

error message :: System.IO.FileNotFoundException Could not load file or assembly 'HttpWebAdapters, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Thanks.


回答1:


The exception says you're missing a reference to HttpWebAdapters, which is an assembly normally merged into SolrNet. All releases have this merged into SolrNet.dll, so I'm guessing you grabbed the source code, compiled it, but didn't run the merge target, and then didn't reference HttpWebAdapters.

Solutions:

  • use a binary release, or
  • if you need something that isn't released yet, use a nightly build from the build server, or
  • if you really need to build from source, make sure you run the merge target or include HttpWebAdapters.dll in your references.


来源:https://stackoverflow.com/questions/4204558/solr-does-not-initialize

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!