Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • trfletch 598 posts 604 karma points
    Apr 20, 2010 @ 10:15
    trfletch
    0

    Strange ASP.net error for one user

    Hi all,

    I have an Umbraco V4.0.3 website and for some reason one user (so far, there could be others) gets the following error when visiting the site. I can't understand what is different for them because they are running the same browser (Internet Explorer 8) as other users that have no problems. Does anyone know what this means and what it could be related to?

      

    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) +8674071
       umbraco.presentation.masterpages._default.AddLiveEditingSupport() +115
       umbraco.presentation.masterpages._default.Page_Load(Object sender, EventArgs e) +35
    
    [ApplicationException: Error adding Canvas support.]
       umbraco.presentation.masterpages._default.Page_Load(Object sender, EventArgs e) +89
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Apr 20, 2010 @ 15:21
    Richard Soeteman
    0

    I Think this is because this user is logged in using Canvas.  Things to check:

    - Close all browsers and try again

    - Let that user login to umbraco and let hiom cick the Logout user button (Right top of the screen)

    - Check the user settings and make sure "Redirect to canvas on login" is not checked.

    Hope this helps you,

    Richard

     

  • trfletch 598 posts 604 karma points
    Apr 23, 2010 @ 15:00
    trfletch
    0

    Hi Richard,

    Thanks for the response, it turns out the user was trying to edit the page in canvas. I assume there must be an issue with this because of the code I have on my page??

Please Sign in or register to post replies

Write your reply to:

Draft