Canvas editing throws an exception when a Contour is used.
If the macro "Insert form from Umbraco Contour" is inserted into the Richtext editor then an exception are thrown.
Extender controls may not be registered after PreRender.
[InvalidOperationException: Extender controls may not be registered after PreRender.] System.Web.UI.ScriptControlManager.RegisterExtenderControl(TExtenderControl extenderControl, Control targetControl) +350187 System.Web.UI.ScriptManager.RegisterExtenderControl(TExtenderControl extenderControl, Control targetControl) +69 System.Web.UI.ExtenderControl.RegisterWithScriptManager() +143 System.Web.UI.ExtenderControl.OnPreRender(EventArgs e) +19 AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e) +32
I can insert the Contour form into a page but when I preview the page. I get the following error:
Extender controls may not be registered after PreRender.
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.
Seems like now it is working. Before the contour forms that I created through the datasource did not appear under the contour forms folder and now it does. I don't know if that is related to the issue or not.
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Extender controls may not be registered after PreRender.
at System.Web.UI.ScriptControlManager.RegisterExtenderControl[TExtenderControl](TExtenderControl extenderControl, Control targetControl)
at System.Web.UI.ExtenderControl.RegisterWithScriptManager()
at AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
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.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I get the same error (4.7.2) just normal page load after form submission. If I deactivate the workflow step, it works fine ("Send email" on the "When the form has been Submitted" step). This renders Contour useless to me now and have some pretty unhappy clients that encounter this issue.
I stumbled across someone experiencing similar fate (not with Umbraco): http://forums.asp.net/t/1061827.asp Reviewing the post regarding the ScriptManager, I added it to my template and still encountered the same error. I then wrapped my content region with an UpdatePanel and now it's working! I consider this a workaround and not a fix.
Bug with canvas editing and contour macro in rte has been fixed in current WIP version (1.1.13) and will be part of the next maintenance release, sorry for the delay.
I was having this error as well but it was not happening in canvas mode - I found that it was only happening when I had macro caching enabled on the 'Insert form from Umbraco Contour' macro. As soon as I turned the caching off, this fixed the issue. I am using Umbraco 4.7.2 and Contour 1.1.13.2.
had the same issue and i can corfim in my case it was when the 'Insert form from Umbraco Contour' macro had caching enabled, turned it off and its working fine now.
I now know that lol it did make sense at that time because the think was to set caching on all macros that render stuff thats not likely going to change as often, have taken it off now.
Canvas editing throws an exception when a Contour is used.
If the macro "Insert form from Umbraco Contour" is inserted into the Richtext editor then an exception are thrown.
Extender controls may not be registered after PreRender.
Comment author was deleted
Thanks for reporting this Christian, we'll check the issue
I can insert the Contour form into a page but when I preview the page. I get the following error:
Extender controls may not be registered after PreRender.
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:
Seems like now it is working. Before the contour forms that I created through the datasource did not appear under the contour forms folder and now it does. I don't know if that is related to the issue or not.
Hi Tim,
just wondering if you got to the bottom of this?
we're running contour and 4.7:
at System.Web.UI.ScriptControlManager.RegisterExtenderControl[TExtenderControl](TExtenderControl extenderControl, Control targetControl)
at System.Web.UI.ExtenderControl.RegisterWithScriptManager()
at AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
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.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Hey Tim,
Any update on this one?
I get the same message
Umbraco 4.7.1 / Contour 1.1.10 - maybe update to 1.1.12?
-A-
Comment author was deleted
@Anders will check but think the only option will be to disable the form when in Canvas mode
Thanks Tim,
I also get the exception when I do a normal pageload after edit the page. Only thing to do – "touch" web.config!
-A-
Comment author was deleted
Sorry to keep you waiting but doing the last bits to get the v5 version out and will look at this early next week if thats ok
I get the same error (4.7.2) just normal page load after form submission. If I deactivate the workflow step, it works fine ("Send email" on the "When the form has been Submitted" step). This renders Contour useless to me now and have some pretty unhappy clients that encounter this issue.
I stumbled across someone experiencing similar fate (not with Umbraco): http://forums.asp.net/t/1061827.asp Reviewing the post regarding the ScriptManager, I added it to my template and still encountered the same error. I then wrapped my content region with an UpdatePanel and now it's working! I consider this a workaround and not a fix.
Comment author was deleted
Bug with canvas editing and contour macro in rte has been fixed in current WIP version (1.1.13) and will be part of the next maintenance release, sorry for the delay.
Upgrade package is already available: http://nightly.umbraco.org/Umbraco%20Contour/1.1.13%20WIP/
@Jon any chance you can provide me with the templates of your site since I can't reproduce the behaviour you had, thanks
I was having this error as well but it was not happening in canvas mode - I found that it was only happening when I had macro caching enabled on the 'Insert form from Umbraco Contour' macro. As soon as I turned the caching off, this fixed the issue. I am using Umbraco 4.7.2 and Contour 1.1.13.2.
Michael
had the same issue and i can corfim in my case it was when the 'Insert form from Umbraco Contour' macro had caching enabled, turned it off and its working fine now.
Comment author was deleted
Ok that macro should never have caching enabled since it doesn't make sense to do that on an input form...
I now know that lol it did make sense at that time because the think was to set caching on all macros that render stuff thats not likely going to change as often, have taken it off now.
gsg
is working on a reply...