Copied to clipboard

Flag this post as spam?

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


  • Neville 2 posts 22 karma points
    Nov 08, 2014 @ 22:08
    Neville
    0

    Error parsing XSLT file - umbracoMacro InnerException

    Hi,

    As the title suggests I am having errors with the webiste parsing the XSLT files.

    Thanks in advance for any help.

    Here is the trace information :

    InnerException Could not load type 'umbraco.businesslogic.TreeAttribute' from assembly 'businesslogic, Version=1.0.4498.19835, Culture=neutral, PublicKeyToken=null'.
    Could not load type 'umbraco.businesslogic.TreeAttribute' from assembly 'businesslogic, Version=1.0.4498.19835, Culture=neutral, PublicKeyToken=null'.
      at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
      at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
      at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
      at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
      at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
      at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
      at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
      at umbraco.BusinessLogic.Utils.TypeFinder.<>c__DisplayClass2.<FindClassesMarkedWithAttribute>b__0(Type type)
      at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()
      at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
      at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Type attribute)
      at umbraco.macro.GetXsltExtensionsImpl()
      at umbraco.macro.<GetXsltExtensions>b__0()
      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)
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 08, 2014 @ 22:36
    Jan Skovgaard
    0

    Hi Neville and welcome to our :)

    Could you please ellaborate a bit more on what you're trying to do and please share the code as well? From the above error message I have an idea about it but it's hard to give you specific advice and show you a specific piece of code that solves it for you. But chances that I'm able to show and communicate it properly are weak since there is no starting point currently.

    Would also be nice to know what version of Umbraco you're using.

    Looking forward to hearing from you.

    Cheers, Jan

  • Neville 2 posts 22 karma points
    Nov 08, 2014 @ 23:00
    Neville
    0

    Alright I should probably start by stating that this is not my website. I am updating it for someone else so you'll have to bear with me if I'm having certain issues finding specific parts of code and what not.

    The problem that I am having is that none of the XSLT files seem to be working.

    From what I can tell the website is running Umbraco Ver 4.7.2

    And what code do you need? The web config or xslt

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 09, 2014 @ 08:40
    Jan Skovgaard
    0

    Hi Neville

    Aaah ok, so every XSLT file throws this error - So is it happening when you're browsing pages on the frontend?

    And is your job just to update content in the backoffice or also to do further development? Like making .NET extensions etc.? If you're just updating content then you probably need to get in touch with the person who has developed the website in order to have the issues fixed I suppose.

    If every page where XSLT is used is throwing the above error it might be because of a missing XSLT extension declaration in the /config/xsltExtensions.config file. (The file is found in the config folder on the disk).

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft