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.Add(Control child) +9838011
   YAF.Core.Services.PageElementRegister.RegisterCssBlock(Control element, String name, String cssContents) +99
   YAF.Core.Services.PageElementRegister.RegisterCssBlock(String name, String cssContents) +53
   YAF.Core.BBCode.YafBBCode.RegisterCustomBBCodePageElements(Page currentPage, Type currentType, String editorID) +993
   YAF.Core.BBCode.YafBBCode.RegisterCustomBBCodePageElements(Page currentPage, Type currentType) +11
   YAF.Modules.PageBBCodeRegistration.InitAfterPage() +127
   YAF.Modules.SimpleBaseForumModule.ForumControl_AfterForumPageLoad(Object sender, YafAfterForumPageLoad e) +10
   System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0
   YAF.Forum.OnLoad(EventArgs e) +1198
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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