Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solr does not initialize

Tags:

solr

solrnet

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.

like image 837
Dhaval950 Avatar asked Sep 05 '26 05:09

Dhaval950


1 Answers

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.
like image 171
Mauricio Scheffer Avatar answered Sep 08 '26 20:09

Mauricio Scheffer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!