Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Web.HttpCompileException (0x80004005)

Tags:

asp.net

iis-7

My .net 4 intranet application works fine almost all the time. Sometimes, without making any change, it starts giving 500 exceptions with the following message:

System.Web.HttpCompileException (0x80004005): External component has thrown an exception. 
at System.Web.Compilation.AssemblyBuilder.Compile() 
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) 
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) 
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) 

The only solution is the stop the inet service, delete C:\Windows\Microsoft.Net..\Temporary files and then everything starts working again.

Any ideas? Thanks!

like image 942
Jorgito Gutierrez Avatar asked Apr 17 '13 11:04

Jorgito Gutierrez


2 Answers

Try to clean temp asp.net files in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

like image 80
Emin Hasanov Avatar answered Oct 19 '22 23:10

Emin Hasanov


The solution is to clean the Asp.Net Temporary files or recycle the IIS pool.

Read more on Microsoft support

like image 1
Yazan Ati Avatar answered Oct 19 '22 22:10

Yazan Ati