Copied to clipboard

Flag this post as spam?

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


  • Tom 50 posts 100 karma points
    Aug 06, 2009 @ 14:34
    Tom
    0

    Xslt macro causing 'Multiple controls with the same ID ..."

    Umbraco v4.0
    ASP.NET 2.0
    Windows 2003 Server and IIS6

    We are having a macro for building the main site navigation. Sometimes the navigation won't show up (after a refresh it is ok until the next error), when we turn debugging on and the error occurs we see the following error:

    Multiple controls with the same ID 'ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl46' were found. Trace requires that controls have unique IDs.

    Stack trace:

    [HttpException (0x80004005): Multiple controls with the same ID 'ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl46' were found. Trace requires that controls have unique IDs.]
       System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize, Int32 controlStateSize) +426
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +344
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +426
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +426
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +426
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +426
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +426
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +426
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +426
       System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +426
       System.Web.UI.Page.BuildPageProfileTree(Boolean enableViewState) +39
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5792

    Especially when the server is very busy the navigation macro won't load correctly.

    In the old forum i see the same error but no solutions, http://forum.umbraco.org/yaf_postsm48331_Cached-xslt-macros-causing-Multiple-controls-with-the-same-ID--error.aspx

    Any ideas? Thanks.

  • Sebastiaan Janssen 4880 posts 14554 karma points MVP admin hq
    Aug 06, 2009 @ 22:36
    Sebastiaan Janssen
    0

    I know this is the obvious answer, but have you checked your templates and subtemplates? Are any of them actually using the same ID for the contentplaceholder? Or maybe no ID at all?

  • Tom 50 posts 100 karma points
    Aug 07, 2009 @ 13:40
    Tom
    0

    I can't locate any duplicate id's. It looks like at the first request everything is ok after adding some macros to the cache the error occurs. Any ideas?

  • Tom 50 posts 100 karma points
    Aug 10, 2009 @ 19:40
    Tom
    0

    Little kick ;-)

Please Sign in or register to post replies

Write your reply to:

Draft