When I view any page in my application a second time, I recieve the
following error:
[HttpException (0x80004005): Multiple controls with the same ID
'TitleBanner:_c tl0' were found. Trace requires that controls have unique
IDs.]
System.Web.Trac eContext.AddNew Control(String id, String parentId, String
type, Int32 viewStateSize) +313
System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState) +201
System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.P age.ProcessRequ estMain() +1608
If I close the browser and Visual Studio, and then reopen and rebuild the
application I can look at one page in the application one more time, but
then I recieve the error again. What can I do to prevent this error from
occurring? If there is any other information that might help figure out the
problem, I will be happy to give it to you. Here is the entire error page I
recieve:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Multiple controls with the same ID 'TitleBanner:_c tl0' were found. Trace
requires that controls have unique IDs.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.Http Exception: Multiple controls with the same
ID 'TitleBanner:_c tl0' were found. Trace requires that controls have unique
IDs.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Multiple controls with the same ID
'TitleBanner:_c tl0' were found. Trace requires that controls have unique
IDs.]
System.Web.Trac eContext.AddNew Control(String id, String parentId, String
type, Int32 viewStateSize) +313
System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState) +201
System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.P age.ProcessRequ estMain() +1608
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032
Request Details
Session Id: 3nolkd55t1wljc4 52octxq55 Request Type: GET
Time of Request: 7/11/2005 5:29:15 PM Status Code: 500
Request Encoding: Unicode (UTF-8) Response Encoding: Unicode (UTF-8)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000021 0.000021
aspx.page Begin PreRender 0.000235 0.000215
aspx.page End PreRender 0.000260 0.000024
Unhandled Execution Error
Multiple controls with the same ID 'TitleBanner:_c tl0' were found.
Trace requires that controls have unique IDs.
at System.Web.Trac eContext.AddNew Control(String id, String parentId,
String type, Int32 viewStateSize)
at System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState)
at System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState)
at System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState)
at System.Web.UI.C ontrol.BuildPro fileTree(String parentId, Boolean
calcViewState)
at System.Web.UI.P age.ProcessRequ estMain() 0.000584 0.000324
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size
Bytes (excluding children)
__PAGE ASP.index_aspx 0 0
_ctl0 System.Web.UI.L iteralControl 0 0
TitleBar System.Web.UI.H tmlControls.Htm lGenericControl 0 0
_ctl1 System.Web.UI.L iteralControl 0 0
_ctl2 System.Web.UI.R esourceBasedLit eralControl 0 0
Form1 System.Web.UI.H tmlControls.Htm lForm 0 0
_ctl3 System.Web.UI.L iteralControl 0 0
TitleBanner ASP.Banner_ascx 0 0
TitleBanner:lbl Title System.Web.UI.W ebControls.Labe l 0 0
TitleBanner:_ct l0 System.Web.UI.L iteralControl 0 0
Cookies Collection
Name Value Size
ASP.NET_Session Id 3nolkd55t1wljc4 52octxq55 42
Headers Collection
Name Value
Connection Keep-Alive
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/msword, */*
Accept-Encoding gzip, deflate
Accept-Language en-us
Cookie ASP.NET_Session Id=3nolkd55t1wl jc452octxq55
Host localhost
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322)
Server Variables
Name Value
ALL_HTTP HTTP_CONNECTION :Keep-Alive HTTP_ACCEPT:ima ge/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash,
application/msword, */* HTTP_ACCEPT_ENC ODING:gzip, deflate
HTTP_ACCEPT_LAN GUAGE:en-us
HTTP_COOKIE:ASP .NET_SessionId= 3nolkd55t1wljc4 52octxq55 HTTP_HOST:local host
HTTP_USER_AGENT :Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322)
ALL_RAW Connection: Keep-Alive Accept: image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword,
*/* Accept-Encoding: gzip, deflate Accept-Language: en-us Cookie:
ASP.NET_Session Id=3nolkd55t1wl jc452octxq55 Host: localhost User-Agent:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
APPL_MD_PATH /LM/W3SVC/1/ROOT
APPL_PHYSICAL_P ATH c:\inetpub\wwwr oot\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYS IZE
CERT_SERIALNUMB ER
CERT_SERVER_ISS UER
CERT_SERVER_SUB JECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFA CE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEY SIZE
HTTPS_SERVER_IS SUER
HTTPS_SERVER_SU BJECT
INSTANCE_ID 1
INSTANCE_META_P ATH /LM/W3SVC/1
LOCAL_ADDR 127.0.0.1
PATH_INFO /index.aspx
PATH_TRANSLATED c:\inetpub\wwwr oot\index.aspx
QUERY_STRING
REMOTE_ADDR 127.0.0.1
REMOTE_HOST 127.0.0.1
REMOTE_PORT 1361
REQUEST_METHOD GET
SCRIPT_NAME /index.aspx
SERVER_NAME localhost
SERVER_PORT 80
SERVER_PORT_SEC URE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/5.1
URL /index.aspx
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/msword, */*
HTTP_ACCEPT_ENC ODING gzip, deflate
HTTP_ACCEPT_LAN GUAGE en-us
HTTP_COOKIE ASP.NET_Session Id=3nolkd55t1wl jc452octxq55
HTTP_HOST localhost
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 1.1.4322)
Thanks.
--
Nathan Sokalski
nj********@hotm ail.com
http://www.nathansokalski.com/