Copied to clipboard

Flag this post as spam?

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


  • Beng Yap 8 posts 78 karma points
    Aug 09, 2017 @ 07:03
    Beng Yap
    0

    Occasional Error loading MacroEngine script Upon Recycle of AppPool

    Hi all,

    I have a site here which comes across MacroEngine script error occasionally.

    I am able to identify that it happens occasionally right after the app pool recycle. The frequency of this error is probably is one time in a month.

    The version of the Umbraco is 6.2.1.

    Also, I have identified that all the macro scripts throw this error which it reads any property of a Model.

    For e.g. Model.showRightNav

    The model here is a dynamic node.

    These macro scripts errors are logged in the umbraco log. This is one the example of the logged error:

    2017-08-03 04:46:03,274 [7] WARN umbraco.macro - [Thread 24] Error loading MacroEngine script (file: /General/Navigation.cshtml, Type: ''. Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at Umbraco.Core.Models.EntityBase.TracksChangesEntityBase.OnPropertyChanged(PropertyInfo propertyInfo) at Umbraco.Core.Models.EntityBase.TracksChangesEntityBase.SetPropertyValueAndDetectChanges[T](Func2 setValue, T value, PropertyInfo propertySelector) at Umbraco.Core.Models.ContentTypeBase.setAllowedContentTypes(IEnumerable1 value) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) at Umbraco.Core.Models.DeepCloneHelper.DeepCloneRefProperties(IDeepCloneable input, IDeepCloneable output) at Umbraco.Core.Models.ContentTypeCompositionBase.DeepClone() at Umbraco.Core.Persistence.Caching.RuntimeCacheProvider.GetById(Type type, Guid id) at Umbraco.Core.Persistence.Repositories.RepositoryBase2.TryGetFromCache(TId id) at Umbraco.Core.Persistence.Repositories.RepositoryBase2.Get(TId id) at Umbraco.Core.Services.ContentTypeService.GetContentType(Int32 id) at umbraco.cms.businesslogic.ContentType.setupNode() at umbraco.cms.businesslogic.ContentType.<>c__DisplayClassb.<GetDataType>b__a(Tuple2 tuple) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at umbraco.MacroEngines.DynamicNode.TryGetPropertyData(PropertyResult propResult, Object& result) at umbraco.MacroEngines.DynamicNode.TryGetMember(GetMemberBinder binder, Object& result) at CallSite.Target(Closure , CallSite , Object ) at ASP.PagemacroScriptsGeneralNavigationcshtml.Execute() in d:\inetpub\wwwroot\ASIC-Main-Phase2\macroScripts\General\Navigation.cshtml:line 38 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) at umbraco.macro.loadMacroScript(MacroModel macro) at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)

    Does anyone encounter this before? Thanks in advance for any help.

Please Sign in or register to post replies

Write your reply to:

Draft