【发布时间】:2015-03-10 14:04:13
【问题描述】:
我正在托管一个网站(Webform 应用程序),但加载登录页面时显示此错误: http://blog.milstein.me
外部组件抛出异常。 System.Web.HttpCompileException (0x80004005):外部组件已抛出异常。在 System.Web.Compilation.AssemblyBuilder.Compile() 在 System.Web.Compilation.BuildProvidersCompiler.b__1(AssemblyBuilder assemblyBuilder) 在 System.Threading.Tasks.Parallel.c__DisplayClass32`2.b__30() 在 System.Threading.Tasks System.Threading.Tasks.Task.c__DisplayClass11.b__10(Object param0) 处 System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) 处的 .Task.InnerInvoke() --- 堆栈跟踪从先前位置结束异常被抛出 --- 在 System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 的 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludeSubdirectories, Boolean isDirectoryAllowed) 在 System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludeSubdirectories) 在 System.Web.Compilation.BuildMa nager.EnsureFirstTimeDirectoryInit(VirtualPath virtualDir) 在 System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate) 在 System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate)在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert (HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean在 System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) 在 System.Web.UI.TemplateControl.LoadControl(String virtualPath) 在 SageFrame.Framework.PageBase.LoadControl(Strin g UpdatePanelIDPrefix, Boolean IsPartialRendring, PlaceHolder ContainerControl, String ControlSrc, String PaneName, String strUserModuleID, String suffixClass, String HeaderText, Boolean IsUserAdmin, HtmlGenericControl divControl, HtmlGenericControl paneControl, Boolean IsEdit)
但是,主页和其他路由页面正在完美加载! 这个问题的主要原因是什么?如何解决?托管的 .NET 版本是 .NET 4.0。
【问题讨论】:
-
现在好像可以正常工作了?
-
@RobTillie 你能解释一下那个错误日志的真正含义吗?
-
它无法编译它试图加载的东西,从它的外观来看,它是您页面上的模板控件。如果它在本地运行良好,可能是由于部署中缺少某些参考,或者 IIS 中的 .net 配置错误。但是您是否解决了它,因为它现在可以正确加载?
-
是的,现在一切正常!谢谢
-
那么问题出在哪里?也许您可以将其添加为答案
标签: c# asp.net .net hosting web-hosting