jerrong / Sitecore-Item-Buckets

Manage Large Repositories of Content in Sitecore
18 stars 19 forks source link

Sitecore 6.6: Lucene.net version 2.9.4.1 #1

Closed dunston closed 11 years ago

dunston commented 11 years ago

Trying to install Item Buckets in Sitecore 6.6 with the packages for that version. But it seems that the binaries in the package is compiled with the lucene version from Sitecore 6.5.

Is there an updated version of Item Buckets, or could the source for Sitecore 6.6 be uploaded in a branch ?

jerrong commented 11 years ago

The only available source is for 6.5. If you want to have source for 6.6, simply remove the references for Kernel, Client and Analytics as well as Lucene.net and update it to the new references that come with 6.6. The build will fail, but there are only a few simple changes to get it to build. The main issues are Lucene.net has changed slightly.

dunston commented 11 years ago

There are releases for 6.6, and its written in the doc that there are packages for 6.6
https://github.com/jerrong/Sitecore-Item-Buckets/tree/master/release/6.6_NET_4.0

I got a version that works, but to anyone else seeing it for 6.6, they should be removed or created so they work

ob1dev commented 11 years ago

Step to reproduce:

  1. Install Sitecore CMS 6.6.0 rev. 121015 (Update-1);
  2. Install the “Item+Buckets+Big+Data-1.0.zip” installation package;
  3. Install the “Item+Buckets+Kernel-1.0.zip” installation package;
  4. Navigate to Sitecore Client.

Result: The exception appears on Sitecore Login page. Please take a look at the attached “Exception.html” file.

Expected result: There should not any exception after installing the above packages.

Note: The reason of this issue because Sitecore.ItemBucket.Kernel.dll and Sitecore.ItemBuckets.BigData.dll assemblies have a references to the old version of Lucene.Net.dll assembly.

The Lucene.Net.dll assembly has been upgraded to version “2.9.4.1” since Sitecore CMS 6.6.

Exception: Could not load file or assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=null' could not be loaded.

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value HKLM\Software\Microsoft\Fusion!EnableLog to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[FileLoadException: Could not load file or assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0 System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +153 System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +100 Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert) +105 Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +67 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +141 Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +930 Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +577 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296 Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +930 Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +577 Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296 Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +420 Sitecore.Search.SearchManager.GetIndex(String id) +128 Sitecore.Shell.Applications.ShellForm.OnLoad(EventArgs e) +1390

[TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +193 System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35 Sitecore.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e) +337 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

galiana commented 11 years ago

Could you provide the code for SiteCore 6.6? I'd like to fix a bug with the total number of search results at:

@@ -172,7 +172,7 @@ public static IEnumerable Page(this BucketQuery query, int page, i }).ToList(); int hitCount = 0; numberOfHits = hitCount;

ob1dev commented 11 years ago

The current repository contains version for Sitecore CMS 6.5 only.

Source code for Item Buckets for Sitecore CSM 6.6 can be found here: https://github.com/katebutenko/Sitecore-Item-Buckets-6.6-NET4.

Sitecore Installation Packages of Item Buckets for any Sitecore Version: https://github.com/jerrong/Sitecore-Item-Buckets/tree/master/release