ASPX templates
Version 7.x > ASPX templates > getting Server Error with Creating a new site using ASPX templates View modes: 
User avatar
Member
Member
david-saludalabs - 9/19/2012 10:31:55 AM
   
getting Server Error with Creating a new site using ASPX templates
I am getting the following error when I go use the templates created in the tutorial.
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.

Did I miss a step somewhere?

User avatar
Member
Member
david-saludalabs - 9/19/2012 12:22:36 PM
   
RE:getting Server Error with Creating a new site using ASPX templates
I redid the tutorial and still had no luck.
Server Error in '/KenticoCMS7' Application.
--------------------------------------------------------------------------------

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.Add(Control child) +11415588
CMS.UIControls.ContentPage.EnsureScriptManager() +442
CMS.ExtendedControls.CMSUpdatePanel.OnInit(EventArgs e) +110
System.Web.UI.Control.InitRecursive(Control namingContainer) +133
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.AddedControl(Control control, Int32 index) +277
CMS.PortalControls.CMSPortalManager.CreateEditMenu(PageInfo pi, Boolean isPreview, ViewModeEnum viewMode) +625
CMS.PortalControls.CMSPortalManager.CreateChildControls() +725
System.Web.UI.Control.EnsureChildControls() +182
System.Web.UI.Control.InitRecursive(Control namingContainer) +133
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) +1970

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/19/2012 11:36:09 PM
   
RE:getting Server Error with Creating a new site using ASPX templates
Hi,

Could you please describe us the exact steps?
Have you tried searching for the error on our forums? Please check this thread out.

Best regards,
Juraj Ondrus