Copied to clipboard

Flag this post as spam?

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


  • Jerker Stigsson 63 posts 122 karma points
    Nov 14, 2012 @ 10:44
    Jerker Stigsson
    0

    Upgrade from 4.7.2 to 4.8 problem

    My razor macros seems to fail after upgrade. Does anyone have an idea?

    Here is error messages:

     Loading IMacroEngine script    
        RazorDynamicNode got datatype ead69342-f06d-4253-83ac-28000225583b for smallTopImage on LibraryItem    
        RazorDataTypeModelTypes cache is empty, populating cache using TypeFinder...    
        Exception occurred while populating cache, Will set RazorDataTypeModelTypes to null so that this error remains visible and you don't end up with an empty cache with silent failure.    
        The exception was System.Exception and the message was Unable to load one or more of the types in assembly 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Exceptions were thrown:
        System.TypeLoadException: Could not load type 'umbraco.Global' from assembly 'umbraco, Version=1.0.4583.15483, Culture=neutral, PublicKeyToken=null'..    at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Assembly assembly, Type attribute)
          at umbraco.BusinessLogic.Utils.TypeFinder.FindClassesMarkedWithAttribute(Type attribute)
          at umbraco.MacroEngines.DynamicNode.TryGetMember(GetMemberBinder binder, Object& result)

     

    Additional error message shows on the web where macros are supposed to render:

    Error loading Razor Script NavigationMain.cshtml
        'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Any'
  • Jerker Stigsson 63 posts 122 karma points
    Nov 14, 2012 @ 10:50
    Jerker Stigsson
    0

    Oh, I'm sorry, the error message that is conected to the failing macro rendering with DynamicNodeList is as follow:

    Error Loading Razor Script (file: [Razor]NavigationMain) 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Any'    at CallSite.Target(Closure , CallSite , Object )
        at ASP._Page_macroScripts_NavigationMain_cshtml.Execute() in d:\NET_Umbraco\st5_workcopy_net_Backup2012_11_13\Teleca_v5\macroScripts\NavigationMain.cshtml:line 25
        at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
        at System.Web.WebPages.WebPage.ExecutePageHierarchy()
        at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
        at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
        at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
  • Chris Randle 85 posts 199 karma points c-trib
    Feb 13, 2014 @ 02:28
    Chris Randle
    0

    You've probably already resolved this but you need to ensure you have the correct linq assemblies referenced in your website's bin folder. The error you describe is non-Umbraco specific. 

Please Sign in or register to post replies

Write your reply to:

Draft