4.1 SP2 error - Multiple controls with the same ID
Hi, after upgrading to 4.1SP2 I now get this error when browsing to the 'pages' list in the CMS.
Any ideas?
Type : System.Web.HttpException, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Multiple controls with the same ID 'ctl04$frontendPagesListView$ctl00$ctl00$sidebar$languages' were found. Trace requires that controls have unique IDs.
Source : System.Web
Help link :
WebEventCode : 0
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void AddNewControl(System.String, System.String, System.String, Int32, Int32)
Stack Trace : at System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize, Int32 controlStateSize)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1487.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
Hello Stephen,
Please check the following KB Article - http://www.sitefinity.com/devnet/kb/sitefinity-4-x/duplicate-control-ids-after-upgrading-to-sitefinity-4-1.aspx
It seems you are upgrading to 4.1SP2 with a version prior to 4.1.
Hi Georgi,
I'm upgrading from 4.1sp1 which was previously upgraded from 4.0. 4.1sp1 was working fine.
The page receiving the error is the sitefinity/pages though not one of my pages.
I can browse my frontend site without errors.
I was able to resolve the errors by disabling trace outputs in my web.config file but that has not fixed the underlying problem.
Hi Stephen,
You can try querying the database
[sf_control_properties] where nme = 'ID' and change the val property so there are not equal records for val column.
You can check duplicate IDs with simple query
SELECT val, count(val) 'Count'
FROM sf_control_properties where nme = 'ID' GROUP BY val HAVING COUNT(val) > 1
If you are going to change some ids, please use a database backup for this.
Greetings,
Ivan Dimitrov
the Telerik team
I'm getting the same error with a fresh install/clean db.
When I add the following to the web.config I get the above error.
<trace enabled="true" pageOutput="false" requestLimit="999" localOnly="false" />
Stephen
Hello Stephen,
I managed to replicate the issue and will log it for further investigation. I updated your points for reporting this issue to us. For the time being you can use WCF service trace
msdn.microsoft.com/.../ms732023.aspx
I suppose that the problem comes from the conditional templates that we use, because there are controls with the same IDs, but we need to spend more time and investigate this deeply.
Kind regards,
Ivan Dimitrov
the Telerik team
hey I am getting the same error, and was not able to solve this one, can you tell me the exact solutions.
+1 for same error. Was running 4.1 SP1 (1405) with no problems, and have upgraded to 4.1 SP2 and have consistently seen this problem.