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.
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?
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?
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.
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?
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?
Little kick ;-)
is working on a reply...