System.Web.HttpCompileException(0x80004005)

时间:2013-04-17 11:13:53

标签: asp.net iis-7

我的.net 4内网应用程序几乎一直运行良好。有时,在不做任何更改的情况下,它会通过以下消息开始提供500个例外:

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) 

唯一的解决方案是停止inet服务,删除C:\ Windows \ Microsoft.Net .. \ Temporary files然后一切都重新开始工作。

有什么想法吗? 谢谢!

2 个答案:

答案 0 :(得分:0)

尝试清除C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

中的临时asp.net文件

答案 1 :(得分:0)

解决方案是清理Asp.Net临时文件或回收IIS池。

详细了解Microsoft support