We have moved to GitHub Issues
Created by esunxray 23 Dec 2012, 06:10:04 Updated by Sebastiaan Janssen 28 Dec 2012, 11:15:00
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. <% ... %>).
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.
[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).] System.Web.UI.ControlCollection.Add(Control child) +11415588 umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +2198 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 umbraco.BasePages.BasePage.OnLoad(EventArgs e) +19 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Can't reproduce in build 89 with the same configuration (IIS 7.5/SQL2008R2). I'm assuming it's a local configuration problem.
I install build 89 on two machine. Both two have the issue. Why?
And I must say that I have installed many Umbraco version without any problems on my computer.
I have download build 89 and install it with IIS7.5/SQL2008R2withSP2. No package is installed. You can see that I can't enter backoffice.
upload the snapshot
Upload whole site and database, Please use sql server 2008 r2 to attach the database file, and then change user and password in web.config. Please test it and give me answer.
I test it with IE9 and Chrome. This happens with IE9. When I use Chrome to login, it's all right. I have clean up all IE data to test it and it happens again.
Does it help if you remove this line from umbraco\umbraco.aspx? <link rel="icon" type="image/png" href="<%=umbraco.GlobalSettings.Path + "/images/pinnedIcons/umb.ico" %>" />
Yes, After I removed the line. I can enter backoffice with IE9. Why this happen?
I'm not sure.. Can you try changing it to <%# instead of <%= So replace it with this line:
<link rel="icon" type="image/png" href="<%#umbraco.GlobalSettings.Path + "/images/pinnedIcons/umb.ico" %>" />
Yes.It's all right now. Thank you.
Thanks! Fixed in changeset 3b789f31dbad
Backwards Compatible: True
Affected versions: 6.0.0
Due in version: 6.0.0