473,511 Members | 15,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

External component has thrown an exception

1) We did an xcopy of our latest production build to our windows 2003 prod
server and started getting the exception below. Recycling the application on
the webserver seemed to have fixed the problem. Any ideas on why we got this
error?

Message: 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()
2) We also got a different error on one of the pages:

CS1595 'XXX' is defined in multiple places: using definition from
"C:\windows\microsoft.net\framework\v1.1.4322\Temp orary ASP.net......"

which also got "fixed" after recycling the application.

Thanks!
Nov 19 '05 #1
3 4261
Other than saying there was a compile error in your ASPX page it hard
to tell. Did it show you the code generated for the ASPX page?

If this is an intermittent problem that comes and goes i'd be very
concerned.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 14 Mar 2005 07:53:01 -0800, "STech" <st***@nospam.nospam>
wrote:
1) We did an xcopy of our latest production build to our windows 2003 prod
server and started getting the exception below. Recycling the application on
the webserver seemed to have fixed the problem. Any ideas on why we got this
error?

Message: System.Web.HttpException: External component has thrown an
exception. ---> System.Web.HttpCompileException: External component has
thrown an exception.
at
System.Web.Compilation.BaseCompiler.ThrowIfCompil erErrors(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.CompileAndGet ParserCacheItem(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.Htt pApplication+IExecutionStep.Execute()
2) We also got a different error on one of the pages:

CS1595 'XXX' is defined in multiple places: using definition from
"C:\windows\microsoft.net\framework\v1.1.4322\Tem porary ASP.net......"

which also got "fixed" after recycling the application.

Thanks!


Nov 19 '05 #2
It sounds like the running application forgot to recycle once new files were
copied over the old ones. I've seen this happen before but I have no idea
what causes it.
Nov 19 '05 #3
Thanks for Both Scotts' suggestions.

Hi Stech,

Regarding on the symptom you described, I've searched for some former
issues which has the similiar problems. And one possbile cause is that when
we use xcopy to update (or deploy) web application's components( assemblies
in private bin folder), the old ones be replaced which cause the asp.net
application be restarted. Also, at the same time, the asp.net will request
the new assemblies so as to compile new dynamic components. However, if the
updated assemlies's count are huge, it may take some times to finish which
cause the components assemlies be locked by some external process such as
xcopy.exe. Then, some unexpected exceptions occurs.

Will the problems occur again if you have restart your IIS (also clear the
ASP.NET temporary dir)? Also, you can test by do the xcopy work repeatedly
to see whether the problems always occur when we do xcopy, if so, the
problems is likely caused by the one I mentioned above.

Thanks,
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



Nov 19 '05 #4

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

Similar topics

0
2147
by: Sachy | last post by:
Hi, I have received following error in my ASP.NET application. Many of buttons on the different pages are generating this error. I am not sure what I did until this morning code was working...
0
2765
by: test.file | last post by:
We have an application that is running under Citrix. The application files are located on a shared network drive and the app is launched via UNC. The app contains WinForms that are called from...
0
1398
by: Ryan | last post by:
Hello I AM POSTING THIS WITH THE INTENT TO HELP SOMEONE ELSE WHO MAY HAVE THIS PROBLEM.... I DONT NEED HELP ;) I was getting the following error in one of my applications which was installed...
6
37780
by: **Developer** | last post by:
What does this mean: External component has thrown an exception. My program crashes after it leaves a subroutine. What I see during debugging is when I press F11 at the End Sub statement
0
1089
by: Echo | last post by:
Hi All: Does somebody know why everytime when we update our website, if there is DLLs involved(we are running VS 2003, .net Framework 1.1, the DLLs is for project or referenced external DLLs,...
0
2645
by: JT | last post by:
This seems like it could be an asp.net bug. I am getting the following exception when I add OnSortCommand attribute to a datagrid. I have deleted the temp directories, rebooted etc and I have...
0
323
by: Rich Freeman via DotNetMonster.com | last post by:
I have run into a very bizarre intermittent problem with a web app which has been online for almost a year now. While the entire app runs correctly on our dev server, all of a sudden, certain...
0
1800
by: Pieter | last post by:
Hi, When using clickOnce for a VB.NET 2.0 application it installs fine on every computer, except one (a new one...). Every is isstalled, Framework, Mdac, .... The error in the log file is:...
4
3230
by: =?Utf-8?B?U0g=?= | last post by:
There seems to be an issue with .NET 3.5/Visual Studio 2008 (Team System). After convincing my company to create our latest project in .NET 3.5, this is kind of reflecting bad on me. Problem:...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.