I have got the same problem: "Sys.InvalidOperationException: Two components with the same id 'ctl00_cphMain_txtDate_ClnExtender' can't be added to the application"
The only thing I did was to modify the update panel scope, and it started carrying a calender extended textbox as well. Since then I am getting the same error.
Page behavior: At browser if i ignore this message, it recreates the controls inside the update panel???
I split my page in 2 different updatepanels with the original one back to its original scope, but nothing is working, the error is there, the control name however was changed as i remove a RequiredFieldValidator.
Please tell the remedy iots a severe problem in my page and currently i have to delete it and remake the whole page
I have the same problem in the web.config if I change the setting <compilation debug="false"> to false instead of true the site "works" however, if I start in debug mode Visual studio changes the complitation debug mode to "true" which causes the errors
to appear. Started happening after I updated my version of the ajax toolkit. Very frustrating cause I have a massive page that needs to be sorted out and its a key part of my program.
Revert back 2 versions of the toolkit resolves this problem. The version that works is just before they added SeaDragon and the other tool. Anyways seems it has to with a fault set of controls in the toolkit when used by update panels. They work outside
of update panels, but inside and things go haywire. I found my old version of ajaxtoolkit replaced it over the new version and the errors go away even in debug mode. I can send you the version. I will try and get the version number exactly and see if its not
open on the web still.
What a bunch of us have been doing while we wait for a fix. Is to load the new toolkit, but take an older version and replace the source code, just copy and paste over it. This will allow you to use the newer toolkit add ons, but allow you to revert the
other parts of the toolkit to an older version prior to the release of this bug.
To debug if you debug with IE it will throw / list off the scrips in VS, and you can manually start debugging the code.
Hopefully they will fix the modal popup to work inside the update panels before too much longer.
kirtid
Contributor
2610 Points
658 Posts
Microsoft
Re: Two components with the same id ‘{0}’ can’t be added to the application
Jan 25, 2007 10:10 PM|LINK
Program Manager, Silverlight and ASP.NET AJAX
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
kirtid
Contributor
2610 Points
658 Posts
Microsoft
Re: Two components with the same id ‘{0}’ can’t be added to the application
Jan 25, 2007 10:20 PM|LINK
The fix is in the linked work item but I am posting it here in case you could not find it:
dispose:
function() {
if (this._popupBehavior) { this._popupBehavior.dispose(); this._popupBehavior = null;}
if(this._timer) { this._timer.dispose(); this._timer = null;}
var element = this.get_element(); if(element) {$removeHandler(element,
"focus", this._focusHandler);$removeHandler(element,
"blur", this._blurHandler);$removeHandler(element,
"keydown", this._keyDownHandler);$removeHandler(
this._completionListElement, 'mousedown', this._mouseDownHandler);$removeHandler(
this._completionListElement, 'mouseup', this._mouseUpHandler);$removeHandler(
this._completionListElement, 'mouseover', this._mouseOverHandler);}
this._tickHandler = null; this._focusHandler = null; this._blurHandler = null; this._keyDownHandler = null; this._mouseDownHandler = null; this._mouseUpHandler = null; this._mouseOverHandler = null;AjaxControlToolkit.AutoCompleteBehavior.callBaseMethod(
this, 'dispose');}
Program Manager, Silverlight and ASP.NET AJAX
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
lc_
Member
17 Points
10 Posts
Re: Two components with the same id ‘{0}’ can’t be added to the application
Feb 02, 2007 02:12 PM|LINK
Hi guys,
good news for all of us. In the current release of the Toolkit (Feb. 1st, 2007) this issues has been fixed, so no more "hacking and compiling" :-)
kind regards,
Chris
elementz
Member
4 Points
2 Posts
Re: Two components with the same id ‘{0}’ can’t be added to the application
Feb 02, 2007 09:40 PM|LINK
February 01 release fixed this issue for me.
Norm.
lambi_uk
Member
66 Points
22 Posts
Re: Two components with the same id ‘{0}’ can’t be added to the application
Feb 05, 2007 04:32 PM|LINK
I just love it when you have a day where, you just type the error message in Google and you find that it's been fixed!
Great work guys, the error also disappears for me when I use the February, 1st 2007 Control Toolkit version.
Many thanks for posting [:)]
Cheers!
dr.maqk
Participant
974 Points
235 Posts
Re: Two components with the same id ‘{0}’ can’t be added to the application
Sep 25, 2009 10:58 AM|LINK
I have got the same problem: "Sys.InvalidOperationException: Two components with the same id 'ctl00_cphMain_txtDate_ClnExtender' can't be added to the application"
The only thing I did was to modify the update panel scope, and it started carrying a calender extended textbox as well. Since then I am getting the same error.
Page behavior: At browser if i ignore this message, it recreates the controls inside the update panel???
I split my page in 2 different updatepanels with the original one back to its original scope, but nothing is working, the error is there, the control name however was changed as i remove a RequiredFieldValidator.
Please tell the remedy iots a severe problem in my page and currently i have to delete it and remake the whole page
ajax Exception client side Sys.InvalidOperationException
Mark as
My .Net Blog: DotNetExperience
keeperofstar...
Member
377 Points
264 Posts
Re: Two components with the same id ‘{0}’ can’t be added to the application
Nov 30, 2009 07:40 PM|LINK
I have the same problem in the web.config if I change the setting <compilation debug="false"> to false instead of true the site "works" however, if I start in debug mode Visual studio changes the complitation debug mode to "true" which causes the errors to appear. Started happening after I updated my version of the ajax toolkit. Very frustrating cause I have a massive page that needs to be sorted out and its a key part of my program.
keeperofstar...
Member
377 Points
264 Posts
Re: Two components with the same id ‘{0}’ can’t be added to the application
Nov 30, 2009 08:51 PM|LINK
Revert back 2 versions of the toolkit resolves this problem. The version that works is just before they added SeaDragon and the other tool. Anyways seems it has to with a fault set of controls in the toolkit when used by update panels. They work outside of update panels, but inside and things go haywire. I found my old version of ajaxtoolkit replaced it over the new version and the errors go away even in debug mode. I can send you the version. I will try and get the version number exactly and see if its not open on the web still.
P-A-R-U-S
Member
2 Points
1 Post
Re: Two components with the same id ‘{0}’ can’t be added to the application
Dec 18, 2009 12:03 PM|LINK
Getting same problem ever with latest beta of Ajax Toolkit. <compilation debig="false" /> solve this issue, but.... how to debug ?
Two components with the same id ‘{0}’ can’t be added to the application
keeperofstar...
Member
377 Points
264 Posts
Re: Two components with the same id ‘{0}’ can’t be added to the application
Dec 18, 2009 12:39 PM|LINK
What a bunch of us have been doing while we wait for a fix. Is to load the new toolkit, but take an older version and replace the source code, just copy and paste over it. This will allow you to use the newer toolkit add ons, but allow you to revert the other parts of the toolkit to an older version prior to the release of this bug.
To debug if you debug with IE it will throw / list off the scrips in VS, and you can manually start debugging the code.
Hopefully they will fix the modal popup to work inside the update panels before too much longer.