Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do I get this error: “Sys.InvalidOperationException: Two components with the same id **** can be added to the application”?

0
Posted

Why do I get this error: “Sys.InvalidOperationException: Two components with the same id **** can be added to the application”?

0

You may get this error if there is more than one Extender with identical BehaviorID existing on the page. All components on the page are maintained in an internal array. When a new component is going to be added, its ID (which is the exact value of BehaviorID) will be checked against the array to see if it’s already occupied. This exception will be thrown if it’s already there. This usually happens when working with Data presentation controls (GridView, DataList, etc.). If there is an Extender with specified BehaviorID sits in the template, multiple instances of it will be generated. So, the exception occurs. Related threads: http://forums.asp.net/t/1127745.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123