Server Error in '/' Application.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

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 Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

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 Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
   System.Web.UI.ControlCollection.RemoveAt(Int32 index) +198
   System.Web.UI.ControlCollection.Clear() +41
   CMS.PortalEngine.Web.UI.CMSContent.RelocateContent() +409
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.RelocateContent() +95
   CMS.PortalEngine.Web.UI.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +2843
   CMS.PortalEngine.Web.UI.CMSPortalManager.LoadPage(Boolean reloadData) +233
   CMS.PortalEngine.Web.UI.CMSPortalManager.PageHelper_InitComplete(Object sender, EventArgs e) +29
   CMS.Base.Web.UI.PageContext.CurrentPage_InitComplete(Object sender, EventArgs e) +280
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2203


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4081.0