sitecore 6.6 lucene version incompatibility

自闭症网瘾萝莉.ら 提交于 2019-12-12 18:29:00

问题


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?


回答1:


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




回答2:


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>


来源:https://stackoverflow.com/questions/19413543/sitecore-6-6-lucene-version-incompatibility

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