Copied to clipboard

Flag this post as spam?

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


  • Nik Wahlberg 639 posts 1237 karma points MVP
    Jul 23, 2013 @ 20:23
    Nik Wahlberg
    0

    Contour render and save form error

    Hi, we're experiencing a strange issue one of  our our umbraco instances where the contour forms are not displaying (or sometimes displaying but throwing Pre-render error upon submit). Here's how the error appears

    The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    
    Exception Details: System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
    
    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    
    [HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.]
       System.Web.UI.ControlCollection.RemoveAt(Int32 index) +206
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +74
       umbraco.presentation.templateControls.Macro.CreateChildControls() +1911
       System.Web.UI.Control.EnsureChildControls() +181
       System.Web.UI.Control.InitRecursive(Control namingContainer) +819
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +274
       umbraco.presentation.templateControls.<>c__DisplayClass4.<ParseMacros>b__2(String macroAlias, Dictionary`2 attributes) +516
       Umbraco.Core.Macros.MacroTagParser.ParseMacros(String text, Action`1 textFoundCallback, Action`2 macroFoundCallback) +819
       umbraco.presentation.templateControls.Item.OnLoad(EventArgs e) +33
       System.Web.UI.Control.LoadRecursive() +116
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2809
    

    Has anyone else seen this? There was an earlier bug that looked simimlar to this that was reported fixed in version 1.1.x and we are running 3.0.14 on Umbraco 4.11.10. 

    Thanks all!

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Jul 23, 2013 @ 20:38
    Nik Wahlberg
    103

    5 minutes after the post I realized the macro (Insert form from Umbraco Contour) was being cached :( That solved the problem for anyone else who might have this issue. 

    Cheers. 

Please Sign in or register to post replies

Write your reply to:

Draft