6

我的 .net 4 Intranet 应用程序几乎一直都能正常工作。有时,在不做任何更改的情况下,它会开始给出 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 文件,然后一切重新开始工作。

有任何想法吗?谢谢!

4

2 回答 2

1

尝试清理临时 asp.net 文件C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

于 2013-04-17T11:17:33.807 回答
1

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

阅读有关Microsoft 支持的更多信息

于 2016-11-27T21:39:53.093 回答