473,322 Members | 1,307 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

User Control access fails in debug mode, works in release mode

rbg
I have a custom usercontrol in ASP.NET 1.1 named BreadCrumb.ascx which
contains another control also called BreadCrumb.ascx within itself.

Thus the parent BreadCrumb.ascx control is simply a container of the
real (child) Breadcrumb.ascx control.

When I use this parent BreadCrumb.ascx user control within a page. I
can successfully access the page if the debug attribute for the
compilation element in web.config is set to false.

However when the debug attribute is set to true. The page access fails
with the error on this line in the
WINNT\.NETFramework\v1.1.4322\0jhhfgf.cs file :

object __ctrl = ASP.Breadcrumb_ascx
this.breadcrumb = __ctrl

It says cannot map this.breadcrumb to ASP.Breadcrumb_ascx
NOTE THAT THE ABOVE IS THE COMPILER GENERATED .CS FILE

Where ASP.Breadcrumb_ascx is the parent BreadCrumb (container) control
and this.breadcrumb refers to the child Breadcrumb control.

The error is correct in itself, however the point that I dont
understand is why the code works perfectly fine when debug = false, but
fails when debug = true in web.config. Obviously in the debug = false
case the COMPILER GENERATED .CS file isn't accessed.

What I need to understand is why such error happens when debug = true.
Essentially why does the compiler generate a CODE which maps
this.breadcrumb TO ASP.BREADCRUMB_ASCX.

TIA

Jan 17 '07 #1
0 845

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg B | last post by:
Created a simple Win32 application (using Visual Studio wizard)... Am using Visual Studio (Enterprise Edition) 6.0, as well as Service Pack 5. At the start of 'WinMain' function, added the...
2
by: John Beschler | last post by:
I have a c# function that runs fine in VS.Net when in debug mode; however, when I switch to Relase mode or compile the app, the function fails with "object refernce not set". Here is the whole...
3
by: Kevin Mellor | last post by:
Hello all, I hope someone can help me. I am not new to developing but am new to C# (assemblies etc) and V Studio 2003, although familiar with terminology from VS6. I am in the nightmare...
2
by: | last post by:
Hi, I'm experiencing a bizar problem with MS VC++, and just can't figure out what's going on. I Build a solution that compiles pretty well, it works good when I launch it in the Visual C++ Editor...
2
by: mark | last post by:
Can't figure this one out. I appears to not be code related. After surfing my asp.net web app for a while 5 - 10 min. it fails to open any further connections to my access 2000 database. There...
7
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by...
0
by: mauricetheferret | last post by:
Hi all, When I try running a process (cmd.exe for simplicity) and using a redirected stream to input commands, it works perfectly in debug mode. However, in release mode it fails. CMD_process...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
0
by: rbg | last post by:
I have a custom usercontrol in ASP.NET 1.1 named BreadCrumb.ascx which contains another control also called BreadCrumb.ascx within itself. Thus the parent BreadCrumb.ascx control is simply a...
0
by: Author | last post by:
My console application generates PDF documents on the fly using PDFSharp (MigraDoc) library. When I Build it using VS 2005, it compiles OK with no problem and also executes perfectly in Debug...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.