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

HttpCompileException on Seemingly Valid ASP.NET Pages

I am being plagued by a recurring issue in Visual Studio .NET 2003
(.NET Framework 1.1). I'm developing on XP SP2, under IIS 5.1.

Here's what's happening. I'll be designing a Web Form and everything
is cruising along just fine. I add some controls, run the app, it
renders fine, add some more controls, and everything is fine. Once
I've got all the controls in place, I start putting in the back-end
code. No more changes to the HTML take place at that point. But then,
all of a sudden, ASP.NET starts refusing to compile the HTML. The VB
code compiles, but the page itself fails to load into the browser, and
an inspection of the event log reveals the following 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.Compilation.PageCompiler.CompilePageTyp e(PageParser
pageParser)
at System.Web.UI.PageParser.CompileIntoType()
at
System.Web.UI.TemplateParser.GetParserCacheItemThr oughCompilation().

Research reveals that there's something wrong with my HTML. So I've
examined the HTML but for the life of me, I can't find anything wrong.
Further, this has happened several different times, on several
different pages, at various times in the development cycle. The
project isn't particularly large. There are only about 75 Web forms in
the site. We don't use any custom controls.

But here's the really confusing part. I can take that HTML, and all
the code from the page, cut it out, paste it into Notepad, then delete
the form, create a new form, and paste the same exact code into the
page, and it will compile just fine.

What the heck is going on? Has anyone else seen this behavior? I've
read other posts that swear that there's something wrong with my HTML
code, but if that were the case, it wouldn't compile when I pasted it
back in. This behavior is a time sink, and it's starting to occur with
increasing frequency.

I'm open to suggestions, and any help would be greatly appreciated.

Thanks in advance,
Mike

Mar 12 '07 #1
0 2259

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

Similar topics

4
by: Shyamal Prasad | last post by:
Hi, Is there anyway to write JSP files as valid HTML of any sort. What I want to know is if JSP files are some sort of valid XML with a DTD that will check contents. Perhaps JSP files are valid...
38
by: Jukka K. Korpela | last post by:
As well all know, valid markup is important... but when trying to find a convincing modern argument in favor of this, I found pages like http://www.htmlhelp.com/tools/validator/reasons.html which...
3
by: Michael Albanese | last post by:
When I left last night my ASP.Net app was working fine. This morning I had to re-boot the server and then now all i get is the following error message from my custom error handler There has been...
1
by: Pete | last post by:
Hello everybody -- The problem has me stopped. The page: http://www.key-horse.com/fftst.html is rendered completely differently by Firefox 1.0 and IE 6.0. The code seems to me perfectly...
17
by: piraticman | last post by:
Hi. I have some code for a javascript jump menu... It validated with HTML 4.0 but now does not validate with XHTML strict 1.0. I have used name atributes in my code which aparantly are not...
1
by: Lance Orner | last post by:
I wrote this letter to a colleague, and I thought I'd share it here: --- We had a problem with pointers being passed between managed C++ and unmanaged C++ code, but it only occurred once in...
0
by: PauloFor | last post by:
How Can I debug Compile exception in ASP.NET ? System.Web.HttpCompileException: External component has thrown an exception. at...
0
by: Alan Z. Scharf | last post by:
this question in datagrid group for several days with no repsonse. I'm hoping for an answer her because of greater activity in this group. No cross-posting intended. Thanks....
2
by: sethwai | last post by:
Hi, I have a nightly script that executes inplace reorgs allow write access for several tables after a previous script does a large number of delete operations. It usually has been executing...
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...
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...
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

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.