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.
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
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).
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 :
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)
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
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
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
is working on a reply...