U4-1347 - Can't enter backoffice of V6 nightly version with IE9(IIS 7.5, sql2008 r2)

Created by esunxray 23 Dec 2012, 06:10:04 Updated by Sebastiaan Janssen 28 Dec 2012, 11:15:00

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) +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

3 Attachments

Download Umbraco6.zip.001

Download Umbraco6.zip.002

Comments

Sebastiaan Janssen 24 Dec 2012, 13:21:12

Can't reproduce in build 89 with the same configuration (IIS 7.5/SQL2008R2). I'm assuming it's a local configuration problem.


esunxray 25 Dec 2012, 01:03:25

I install build 89 on two machine. Both two have the issue. Why?


esunxray 25 Dec 2012, 01:09:39

And I must say that I have installed many Umbraco version without any problems on my computer.


esunxray 25 Dec 2012, 11:19:54

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.


esunxray 25 Dec 2012, 11:22:58

upload the snapshot


esunxray 25 Dec 2012, 11:43:19

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.


esunxray 26 Dec 2012, 11:15:38

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.


Sebastiaan Janssen 27 Dec 2012, 09:25:21

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" %>" />


esunxray 27 Dec 2012, 10:55:56

Yes, After I removed the line. I can enter backoffice with IE9. Why this happen?


Sebastiaan Janssen 27 Dec 2012, 11:09:23

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" %>" />

I found the answer here: http://stackoverflow.com/questions/778952/the-controls-collection-cannot-be-modified-because-the-control-contains-code-bl


esunxray 27 Dec 2012, 11:14:17

Yes.It's all right now. Thank you.


Sebastiaan Janssen 27 Dec 2012, 12:22:49

Thanks! Fixed in changeset 3b789f31dbad


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.0

Due in version: 6.0.0

Sprint:

Story Points:

Cycle: