I have a simple pagelayout
<----------- PAGELAYOUT ----------->
<%@ Page language="C#" ....
<%@ Register TagPrefix="Telerik" Namespace="Telerik.SharePoint.FieldEditor" Assembly="RadEditorSharePoint, Version=5.1.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" %>
<asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
<Telerik:RadHtmlField FieldName="PublishingPageContent" runat="server" InputFieldLabel="Body" id="RichHtmlField"/>
</asp:Content>
<----------- PAGELAYOUT ----------->
When in displaymode it works fine, but when i go in edit mode I get the following exception:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
And the 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) +11013946
Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control) +1116
Telerik.Web.UI.RadEditor.OnPreRender(EventArgs e) +16
Telerik.SharePoint.MOSSRadEditor.OnPreRender(EventArgs e) +54
System.Web.UI.Control.PreRenderRecursiveInternal() +108
...
The solution deployment and feature activation is done without errors. Any ideas on what can cause this behavior?