BUG? Multiple controls with the same ID

B

Bal Ghuman

Hi Guys



I've got an ASP.NET application that dynamically creates a navigation table
from an XML file and then Loads a user control according to which link has
been selected. The control overrides the pages functionality using
'TemplateControl.LoadControl' to dynamically load a UserControl (.ascx)
that implements HttpContext.Current.Cache functionality. The application
works fine in our development environment but when deployed live the
following error is randomly generated:



ERROR = System.Web.HttpException: Multiple controls with the same ID
'tr_xxx' were found. FindControl requires that controls have unique IDs. at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at



I havn't included any code snippets as the application works fine and this
is a totally random error which occurs infrequently. The application is
hosted on a W2K Server and is built in the 1.0 Framework. I read the
following article by Microsoft, but installing this patch knocked out the
application.



http://support.microsoft.com/default.aspx?scid=kb;EN-US;834608



I'm in a quandary with this one, any pointers would be most appreciated.



Thanks in advance....



Bal
 
C

Craig Deelsnyder

Hi Guys



I've got an ASP.NET application that dynamically creates a navigation
table
from an XML file and then Loads a user control according to which link
has
been selected. The control overrides the pages functionality using
'TemplateControl.LoadControl' to dynamically load a UserControl (.ascx)
that implements HttpContext.Current.Cache functionality. The application
works fine in our development environment but when deployed live the
following error is randomly generated:



ERROR = System.Web.HttpException: Multiple controls with the same ID
'tr_xxx' were found. FindControl requires that controls have unique IDs.
at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer,
ControlCollection controls) at



I havn't included any code snippets as the application works fine and
this
is a totally random error which occurs infrequently. The application is
hosted on a W2K Server and is built in the 1.0 Framework. I read the
following article by Microsoft, but installing this patch knocked out the
application.



http://support.microsoft.com/default.aspx?scid=kb;EN-US;834608



I'm in a quandary with this one, any pointers would be most appreciated.



Thanks in advance....



Bal

Looks like that fix is for framework 1.1, may not work for 1.0.

Here's a post w/ more details on apparently what's happening:
http://www.dotnet247.com/247reference/msgs/12/61031.aspx

and some more insigth:
http://www.dotnet247.com/247reference/msgs/52/260219.aspx
 
B

Bal Ghuman

Thanks for the pointers, because the error is so random its almost
impossible to nail down. Over the past few weeks I've tried a few options,
including rebuilding the application in the 1.1 Framework. But the patch
Microsoft released is problematic and they are due to include a revised
version in their next Service Pack.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,063
Latest member
StormyShuf

Latest Threads

Top