eloycm
eloycm

Reputation: 414

sitecore 6.6 lucene version incompatibility

I'm upgrading to sitecore 6.6 rev 120918 I'm using lucene 2.9.4.1 When going to the console index manager > choosing an index and then browse documents I get the error: Could not load file or assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies. My understanding is that is a deprecated version, any insights on how can I solve this?

Upvotes: 2

Views: 1481

Answers (2)

Richard Seal
Richard Seal

Reputation: 4266

If you have the 2.9.4 binary referenced in your project you will need to add a binding redirect to the web.config.

Something like this:

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Lucene.Net" publicKeyToken="85089178b9ac3181" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.3.0.0" newVersion="2.9.4.1" />
      </dependentAssembly>
    </assembleyBinding>
  </runtime>

Upvotes: 0

jammykam
jammykam

Reputation: 16990

I presume you used the Index Viewer from Sitecore Marketplace?

You need to make sure you are running the latest version (1.2) and the download the IndexViewer DLL which was built for Sitecore 6.6/Lucene 2.9.4.1

Basically download this DLL, rename to IndexViewer.dll and replace the existing dll of same name in your /bin directory.

https://github.com/JimmieOverby/IndexViewer/blob/master/IndexViewer.Sitecore66.dll

Upvotes: 6

Related Questions