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:


Line 159:            if (HttpContext.Current.Request.Url.AbsolutePath.Contains("sitemap.aspx")) {
Line 160:                Breadcrumb.Visible = false;
Line 161:                bannerTagline.InnerText = "Site Map";
Line 162:                addressList.Visible = false;
Line 163:                wysiwyg.Attributes.Add("class", wysiwyg.Attributes["data-backup-class"]);

Source File: \\prd-ps-content\prositesstyles\stylecustomizations\8046\301688\interior.Master.cs    Line: 161

Stack Trace:


[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
   System.Web.UI.ControlCollection.Add(Control child) +296
   System.Web.UI.HtmlControls.HtmlContainerControl.set_InnerHtml(String value) +102
   RWD.RWD_Site.Page_Load(Object sender, EventArgs e) in \\prd-ps-content\prositesstyles\stylecustomizations\8046\301688\interior.Master.cs:161
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +130
   System.Web.UI.Control.OnLoad(EventArgs e) +104
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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