Error Message in WYSIWYG Editor if using a Basepage

  •  04-11-2005, 4:22 AM

    Error Message in WYSIWYG Editor if using a Basepage

    Hi,
    i m using a basepage in my project. I included the Cute Editor in my WebForm an get the following error message INSIDE of the editor: (i dont get any error on my other pages only on this site and only inside of the editor!!)

    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 137:			
    Line 138: siteHeader = (header)LoadControl("/_include/header.ascx");
    Line 139: this.Controls.AddAt(0, siteHeader);
    Line 140: base.OnInit(e); //detail-seite laden
    Line 141: siteFooter = (footer)LoadControl("/_include/footer.ascx");

    Source File: \\myserver\bla4\_include\BasePage.cs    Line: 139

    Stack Trace:

    [HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
    System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +354
    bla4._include.BasePage.OnInit(EventArgs e) in \\myserver\bla4\_include\BasePage.cs:139
    System.Web.UI.Control.InitRecursive(Control namingContainer) +241
    System.Web.UI.Page.ProcessRequestMain() +174


    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


    In my web.config i am using this line beside the standard stuff in there:
    <pages pageBaseType="bla4._include.BasePage, bla4" validateRequest="false" />
    if i dont i wont get the error in the editor.

    This happens only with Firefox not the IE.

    Can you help me?
    Thanks, tobi

View Complete Thread