473,324 Members | 2,248 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,324 software developers and data experts.

asp.net 1.1 error

Hi all,

I have a very weird error going on in an asp.net page that has usercontrols.
If I set debug="false" in the web.config file, the page throws an error:-

System.Web.HttpException: External component has thrown an exception. --->
System.Web.HttpCompileException: External component has thrown an exception.
at System.Web.Compilation.BaseCompiler.ThrowIfCompile rErrors(CompilerResults
results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String
sourceFile, String sourceString) at
System.Web.Compilation.BaseCompiler.GetCompiledTyp e() at
System.Web.UI.PageParser.CompileIntoType() at
System.Web.UI.TemplateParser.GetParserCacheItemThr oughCompilation() --- End
of inner exception stack trace --- at
System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
fCreateIfNotFound) at System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath,
String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) at
System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)

If I set debug="true", then everything works fine. What could be causing
this? It just started happening...
Oct 4 '06 #1
12 1498
Hi Param,

You may try following things to see if it helps:

1) do a "iisreset" when you changed the debug setting
2) clean the "temporary asp.net files" in
%windir%\microsoft.net\framework\<version>

Is visiting any page will throw the exception? even an empty page?

Is it reproducible? i.e. deploying on other web site also has this problem.

At last, I would suggest you use "divide and conquer" stragety to track
down the root cause: remove some files at a time; comment out the config in
web.config at a time.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 5 '06 #2
This issue is now reproducible in Development as well.

Here is what is going on. I have 2 .ascx usercontrols. Both are called
app_tabs.ascx. However, they are in 2 seperate folders.

c:\mysite\usercontrols\app_tabs.ascx
c:\mysite\usercontrols\new\app_tabs.ascx

Now, I use these usercontrols in different pages. The page that has the 2nd
usercontrol throws this exception:-

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: BC30560: 'app_tabs_ascx' is ambiguous in the
namespace '_ASP'.

Source Error:

Line 127:<sta:titlebar id="statitlebar" runat="server"/>
Line 128:<sta:toolbar id="statoolbar" runat="server"/>
Line 129:<sta:dealerone_apptabs id="statabs" runat="server"/>
Line 130:<br>
Line 131:

If I set debug=true in web.config, this error goes away.....


"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:84**************@TK2MSFTNGXA01.phx.gbl...
Hi Param,

You may try following things to see if it helps:

1) do a "iisreset" when you changed the debug setting
2) clean the "temporary asp.net files" in
%windir%\microsoft.net\framework\<version>

Is visiting any page will throw the exception? even an empty page?

Is it reproducible? i.e. deploying on other web site also has this
problem.

At last, I would suggest you use "divide and conquer" stragety to track
down the root cause: remove some files at a time; comment out the config
in
web.config at a time.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Oct 5 '06 #3
Hi Param,

Which version of ASP.NET are you using? Are you using Web Application
Project add-in in VS2005?

I've tested using Web Site in VS2005 and didn't reproduce the issue if I
have two same named UserControl in different folders.

Would you please create a reproducible project and send it to me? Thank you.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 6 '06 #4
..Net 1.1 using Asp.Net Web Matrix.

"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:ca**************@TK2MSFTNGXA01.phx.gbl...
Hi Param,

Which version of ASP.NET are you using? Are you using Web Application
Project add-in in VS2005?

I've tested using Web Site in VS2005 and didn't reproduce the issue if I
have two same named UserControl in different folders.

Would you please create a reproducible project and send it to me? Thank
you.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Oct 6 '06 #5
Hi Param,

I've also tried using Visual Studio 2003, it doesn't have the problem too.
So it seems this issue only exists in ASP.NET Web Matrix.

ASP.NET Web Matrix as provided as the free development program for earlier
versions of ASP.NET. For today's ASP.NET version 2.0, the free and
easy-to-use development program is Visual Web Developer Express
(http://www.asp.net/downloads/getvwd/...aspx?tabid=62).

ASP.NET Web Matrix is not a supported product by Microsoft Product Support
Services (http://asp.net/webmatrix/faq.aspx).

If you're learning ASP.NET, I would highly suggest you use the free Visual
Web Developer Express.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 9 '06 #6
These web apps are in production and have been running since 2003. When you
tried VS2003 did you run the site of a Windows Server 2003 box with .net 1.1
on it?

"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:O3**************@TK2MSFTNGXA01.phx.gbl...
Hi Param,

I've also tried using Visual Studio 2003, it doesn't have the problem too.
So it seems this issue only exists in ASP.NET Web Matrix.

ASP.NET Web Matrix as provided as the free development program for earlier
versions of ASP.NET. For today's ASP.NET version 2.0, the free and
easy-to-use development program is Visual Web Developer Express
(http://www.asp.net/downloads/getvwd/...aspx?tabid=62).

ASP.NET Web Matrix is not a supported product by Microsoft Product Support
Services (http://asp.net/webmatrix/faq.aspx).

If you're learning ASP.NET, I would highly suggest you use the free Visual
Web Developer Express.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Oct 9 '06 #7
Hi Param,

Thanks for the update. I will do a test again. Before that, I want to make
sure we have the same understanding of the issue. My understanding is:
using two UserControls that with same name but exist in different folder,
will cause ambiguous class name in the namespace "_ASP" when in debug mode.
This issue can be reproduced on a Windows Server 2003 with ASP.NET 1.1,
right?

I'll get back to you as soon as I get the result. Thank you for your
patience.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 10 '06 #8
Yes that is correct.

Windows Server Web 2003 w/ SP1 - fully patched. Running both .net 1.1 and
..net 2.0. The website runs under .net 1.1. Its got its own App Pool
configured... site runs over SSL...

TIA!

"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:Rk**************@TK2MSFTNGXA01.phx.gbl...
Hi Param,

Thanks for the update. I will do a test again. Before that, I want to make
sure we have the same understanding of the issue. My understanding is:
using two UserControls that with same name but exist in different folder,
will cause ambiguous class name in the namespace "_ASP" when in debug
mode. t
This issue can be reproduced on a Windows Server 2003 with ASP.NET 1.1,
right?

I'll get back to you as soon as I get the result. Thank you for your
patience.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Oct 10 '06 #9
Hi Param,

I've done test using following environment and steps:

1) On a Windows Server 2003 SP1 that have both .NET 1.1 and 2.0 installed,
create a new virtual directory and configured to use ASP.NET 1.1.4322
2) Create a new AppPool and configure the virtual directory to use this
AppPool
3) Create two simple UserControls that with same name but in different
folders, and create two webforms to use them accordingly; the first webform
has a link to navigate to the second webform
4) Make sure 'debug="false"' is set in web.config
5) Setup SSL
6) Visit https://localhost/WebApplication1/WebForm1.aspx, and navigate to
Webform2.aspx, which works correctly.

I think using a simple web application will not reproduce the issue. I'm
afraid we must use a reproducible project from you to find the root cause.
Thank you for your effort.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Oct 10 '06 #10
I was able to reproduce the error on 2 boxes - TEST & PRODUCTION.......
"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:Uk**************@TK2MSFTNGXA01.phx.gbl...
Hi Param,

I've done test using following environment and steps:

1) On a Windows Server 2003 SP1 that have both .NET 1.1 and 2.0 installed,
create a new virtual directory and configured to use ASP.NET 1.1.4322
2) Create a new AppPool and configure the virtual directory to use this
AppPool
3) Create two simple UserControls that with same name but in different
folders, and create two webforms to use them accordingly; the first
webform
has a link to navigate to the second webform
4) Make sure 'debug="false"' is set in web.config
5) Setup SSL
6) Visit https://localhost/WebApplication1/WebForm1.aspx, and navigate to
Webform2.aspx, which works correctly.

I think using a simple web application will not reproduce the issue. I'm
afraid we must use a reproducible project from you to find the root cause.
Thank you for your effort.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.


Oct 12 '06 #11
Hi Param,

Do you mean that using a very simple web site with two same named
UserControls can reproduce this issue on both of your machines? If not, is
it possible for you to create a reproducible project and send it to me?
Thank you for your effort and understanding.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 12 '06 #12
Hello,
Was there any findings/resolution about this error. I am also getting the
same error
I am running .Net 1.1 on Windows Server 2003 Standard Edition SP1

Currently I was able to resolve it by setting debug ="true" in web.config

Thanks
Sadagopan

"Walter Wang [MSFT]" wrote:
Hi Param,

Do you mean that using a very simple web site with two same named
UserControls can reproduce this issue on both of your machines? If not, is
it possible for you to create a reproducible project and send it to me?
Thank you for your effort and understanding.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '06 #13

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

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
2
by: Gregory | last post by:
Hi, One of the disadvantages of using error handling with error codes instead of exception handling is that error codes retuned from a function can be forgotten to check thus leading to...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
3
by: Manuel | last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
0
by: mchuc7719 | last post by:
Hello, I have a Vb.Net 2005 ClassLibrary, when I try to compile using MSBee, only get errors. Before I to run the command line, I open in notepad the .vbproj and I was add the next line: ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.