Copied to clipboard

Flag this post as spam?

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


  • Ganesh Mitra 4 posts 74 karma points
    Feb 09, 2020 @ 04:24
    Ganesh Mitra
    0

    The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.

    Hi All, Recently I upgrade my umbraco from 7.5.4 to 7.15.3 but I got lots of error msg like "The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.". I got that after upgrade. Not sure how I resolve this. This is basically for those urls whose have cache macros.

    Full Stack Trace : System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. at System.Web.UI.ControlCollection.RemoveAt(Int32 index) at System.Web.UI.ControlCollection.Remove(Control value) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at umbraco.presentation.templateControls.Macro.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at umbraco.presentation.templateControls.Macro.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Thanks in advance Ganesh

  • Ganesh Mitra 4 posts 74 karma points
    Apr 25, 2020 @ 08:42
    Ganesh Mitra
    0

    Anyone please help me on this?

  • Alex Skrypnyk 5730 posts 21691 karma points MVP 3x admin c-trib
    29 days ago
    Alex Skrypnyk
    0

    Hi Ganesh,

    Can you disable macro caching and check if errors occur again?

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft