Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • david 46 posts 81 karma points
    Nov 07, 2011 @ 11:49
    david
    0

    Upgrade to 4.7 break all my XSLT

    Hi everyone!

    We have a site on umbraco 4.5.2 that we are trying to upgrade to 4.7.

    Everything goes fine except that all the xslt are broken (have no reader).

    All the xslt have been created using the new schema on 4.5.2 so this is not a possible cause.

    Using the /?umbDebugShowTrace=true the error showed is:

    Unable to load one or more of the types in assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown:
    System.TypeLoadException: Method 'Range' in type 'Examine.LuceneEngine.SearchCriteria.LuceneQuery' from assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    System.TypeLoadException: Method 'Range' in type 'Examine.LuceneEngine.SearchCriteria.LuceneSearchCriteria' from assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    Unable to load one or more of the types in assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown:
    System.TypeLoadException: Method 'Range' in type 'Examine.LuceneEngine.SearchCriteria.LuceneQuery' from assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    System.TypeLoadException: Method 'Range' in type 'Examine.LuceneEngine.SearchCriteria.LuceneSearchCriteria' from assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
      at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Assembly assembly, Type attribute)
      at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Type attribute)
      at umbraco.macro.GetXsltExtensionsImpl()
      at umbraco.macro.<GetXsltExtensions>b__4()
      at umbraco.cms.businesslogic.cache.Cache.GetCacheItem[TT](String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem)
      at umbraco.macro.GetXsltExtensions()
      at umbraco.macro.AddMacroXsltExtensions()
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
      at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements)

    We have upgraded the examine.dll , lucene.Net.dll, UmbracoExamine.dll as well

    Using the Visual Studio Object Explorer we can see the Examine.LuceneEngine.SearchCriteria.LuceneQuery.Range and Examine.LuceneEngine.SearchCriteria.LuceneSearchCriteria.Range really exist with multiple implementations.

    Any idea?

    Thanks.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 07, 2011 @ 12:31
    Tim
    0

    It looks like there's a problem with one of the XSLT extensions that you have on the site. Check that your xslt extension config file is correct. If you didin't replace it as part of the upgrade, you may want to check against the config file that comes with 4.7.1 to see if there's anything amiss!

    Hope that helps!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Nov 07, 2011 @ 13:04
  • david 46 posts 81 karma points
    Nov 07, 2011 @ 13:06
    david
    0

    The xslt config file that comes with 4.7 is empty (just example text) and our file has just two lines, one for contour and other for a custom extensions.

    If I turn them off , the error still persist

  • david 46 posts 81 karma points
    Nov 08, 2011 @ 10:06
    david
    0

    The dlls has been deleted, the entire site has been republished but it's showing the same error

  • Daniel Bardi 927 posts 2562 karma points
    Dec 21, 2011 @ 23:32
    Daniel Bardi
    0

    I'm getting the same issue.. just upgraded a site from 4.5.2 to 4.7.1

    Not loading any customer extensions. 

    All these cause the error:
    - Running xslt macros
    - Creating new xslt files
    - Testing of existing xslt

    Unable to load one or more of the types in assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown:
    System.TypeLoadException: Method 'Range' in type 'Examine.LuceneEngine.SearchCriteria.LuceneQuery' from assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    System.TypeLoadException: Method 'Range' in type 'Examine.LuceneEngine.SearchCriteria.LuceneSearchCriteria' from assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    Unable to load one or more of the types in assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown:
    System.TypeLoadException: Method 'Range' in type 'Examine.LuceneEngine.SearchCriteria.LuceneQuery' from assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    System.TypeLoadException: Method 'Range' in type 'Examine.LuceneEngine.SearchCriteria.LuceneSearchCriteria' from assembly 'Examine.LuceneEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
      at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Assembly assembly, Type attribute)
      at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Type attribute)
      at umbraco.macro.GetXsltExtensionsImpl()
      at umbraco.macro.<GetXsltExtensions>b__4()
      at umbraco.cms.businesslogic.cache.Cache.GetCacheItem[TT](String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem)
      at umbraco.macro.GetXsltExtensions()
      at umbraco.macro.AddMacroXsltExtensions()
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)

      at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements) 

  • Stephen 767 posts 2273 karma points c-trib
    Jan 08, 2012 @ 10:50
    Stephen
    0

    I am currently looking into that one. One thing to know is that prior to 4.7, GetXsltExtensionsImpl() caught many exceptions and simply hid them. It made things pretty difficult to debug (ie it was silently failing at loading some extensions, but not telling you). So now we try to be more verbose and throw as soon as something goes wrong.

    What that means is that the error above might have existed before you upgraded, but it was hidden. Now, you see it.

    This is just a guess at the moment, will try to come back with more debug infos.

  • Stephen 767 posts 2273 karma points c-trib
    Jan 08, 2012 @ 11:09
    Stephen
    0

    Ok... the type loader chokes on Examine.LuceneEngine assembly... in our (4.7.1.1) bin we have Lucene.Net.dll, Examine.dll, UmbracoExamine.dll... but no Examine.LuceneEngine.dll. What's in your bin?

    As Shannon once pointed our here, "note that Examine.LuceneEngine.DLL is no longer relavent in the newer version".

Please Sign in or register to post replies

Write your reply to:

Draft