Skip to main content

Posts

Showing posts from 2018

Quick Tutorial - Setup a Solr instance

Before we start installing Solr instance on any machine, we should be clear on few concepts. What is Solr? Solr is Apache's product and a fast open-source Java search server. Why we need it? Solr enables you to easily create search engine for websites, databases and files. How can we install it? Option 1(for Windows machines) -  You can download any version of Solr from  http://archive.apache.org/dist/lucene/solr/ . Steps to install after it is downloaded- Extract the downloaded Solr package and copy it on C or D drive Please make sure latest version of Java is installed on machine. You can start Solr instance by below command: java -jar start.jar By default, Solr will run on port 8983. However you can change it ../etc/Jetty.xml file. Look for <set name="port"><SystemProperty name="jetty.port" default="8983"></set> and change it. You can keep the below command in .bet file and run it automatically. C:\solr-6.1.0\bin\s

Could not load file or assembly 'Microsoft.Web.Infrastructure'

Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. What 'Micorosoft.Web.Infrastructure' does? This dll lets HTTP modules register at run time. Solution to above problem: Copy 'Micorosoft.Web.Infrastructure' dll in bin folder of your project and this problem should be resolved. If you have .Net framework installed on machine, this dll should be present on it. You can search for this dll and copy it in your active project folder.   Alternatively,  you can install this dll using nuget package manager PM> Install-Package Microsoft.Web.Infrastructure -Version 1.0.0 Happy coding!!