Random Error Sometimes The control collection cannot be modified during DataBind...
Hi Guys,
Every once and awhile when loading an umbraco page I get this error:
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. I don't do anything with the pages controls on any of my macros at all. The only thing I can possibly think of is I have a sidebar macro which loads other macros. Any ideas?
Random Error Sometimes The control collection cannot be modified during DataBind...
Hi Guys,
Every once and awhile when loading an umbraco page I get this error:
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. I don't do anything with the pages controls on any of my macros at all. The only thing I can possibly think of is I have a sidebar macro which loads other macros. Any ideas?
[HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.] System.Web.UI.ControlCollection.RemoveAt(Int32 index) +12546422 System.Web.UI.Control.AddedControl(Control control, Int32 index) +12662418 umbraco.presentation.templateControls.Macro.CreateChildControls() +1822 System.Web.UI.Control.EnsureChildControls() +189 System.Web.UI.Control.InitRecursive(Control namingContainer) +186 System.Web.UI.Control.InitRecursive(Control namingContainer) +421 System.Web.UI.Control.InitRecursive(Control namingContainer) +421 System.Web.UI.Control.InitRecursive(Control namingContainer) +421 System.Web.UI.Control.InitRecursive(Control namingContainer) +421 System.Web.UI.Control.InitRecursive(Control namingContainer) +421 System.Web.UI.Control.InitRecursive(Control namingContainer) +421 System.Web.UI.Control.InitRecursive(Control namingContainer) +421 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2098
Thanks for any help.
Also maybe related, sometimes the sidebar macro completely fails to load and is just blank with nothing there.
is working on a reply...