Working on site i been handed and suddnely a couple of macros have
started playing up. Macro was working fine now suddenly this error
showed up can anyone help here is the code.
Error loading MacroEngine script (file: /Widgets/Widget_LawyerProfileWidgets.cshtml, Type: '' 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Any' at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
If you have WebGrease.dll upgrading to latest version should fix it, if it's DotNetOAuth.dll then only solution I know of is to delete it and seek alternative if it's required. There are some other dlls which can also cause problems.
Obviously, first step is to see if any dlls have been added.
Hmm, that is strange. The .Any() extension method actually comes from System.Linq in System.Core.dll which is of course in the GAC. Does this issue occur in multiple environments, development and live etc?
Error loading MacroEngine script (file: LawyerProfileView.cshtml)
Working on site i been handed and suddnely a couple of macros have started playing up. Macro was working fine now suddenly this error showed up can anyone help here is the code.
i have tried loading from a backup file but the problem persists.
Hi Wayne,
Do you know what the exception is? If you are using v4.10+ you should be able to find the exceptions in the log4net file in /App_Data/Logs/
Jeavon
WARN umbraco.macro - [Thread 86] Error loading MacroEngine script (file: PrimaryNavigation.cshtml, Type: ''. Exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
also got this error in debug mode:
Error loading MacroEngine script (file: /Widgets/Widget_LawyerProfileWidgets.cshtml, Type: ''
'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Any'
at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
Ok, have you added any new dlls to the bin folder, thinking possibly webgrease.dll or DotNetOAuth.dll?
I havnt but someone else may have i cant access the files till tuesday so i will check then if they are there shall i just delete them ?
If you have WebGrease.dll upgrading to latest version should fix it, if it's DotNetOAuth.dll then only solution I know of is to delete it and seek alternative if it's required. There are some other dlls which can also cause problems.
Obviously, first step is to see if any dlls have been added.
Hi Jeavon no dlls have been added but i even backed up the bin file from a previous backup that worked fine. but still no luck ?
Hmm, that is strange. The .Any() extension method actually comes from System.Linq in System.Core.dll which is of course in the GAC. Does this issue occur in multiple environments, development and live etc?
we dont have the development site at the moment just the live site whats strange is that it was fine a few days ago
Hi Wayne,
Could you try this
Jeavon
No still no luck really is becoming a pain now
Hi Wayne,
I think this is going to be a complex issue to trace down.
Maybe as workaround you could try using .Count instead.
Jeavon
is working on a reply...