Citation:
Server Error in '/' 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) +8721975
Telerik.Web.SkinRegistrar.RegisterCssReference(Page _page, Control _control, String _url) +486
[HttpException (0x80004005): Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.]
Telerik.Web.SkinRegistrar.RegisterCssReference(Page _page, Control _control, String _url) +557
Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control) +1563
Telerik.Web.UI.RadWebControl.RegisterCssReferences() +72
Telerik.Web.UI.RadWebControl.ControlPreRender() +72
Telerik.Web.UI.RadFormDecorator.ControlPreRender() +814
Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +47
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496