System.Web.HttpCompileException (0x80004005)

System.Web.HttpCompileException (0x80004005)(System.Web.HttpCompileException (0x80004005))
本文介绍了System.Web.HttpCompileException (0x80004005)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 .net 4 Intranet 应用程序几乎一直运行良好.有时,在不做任何更改的情况下,它会开始给出 500 个异常并显示以下消息:

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) 

唯一的解决方案是停止 inet 服务,删除 C:WindowsMicrosoft.Net..Temporary 文件,然后一切又开始工作.

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

有什么想法吗?谢谢!

推荐答案

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

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

详细了解 微软支持

这篇关于System.Web.HttpCompileException (0x80004005)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)
Bind multiple parameters from route and body to a model in ASP.NET Core(在ASP.NET Core中将路由和主体中的多个参数绑定到一个模型)
Custom model binding in AspNet Core WebApi?(AspNet Core WebApi中的自定义模型绑定?)
How to minify in .net core mvc view?(如何在.Net核心MVC视图中缩小?)