托管基于路由的 Web 应用程序
本文关键字:Web 应用程序 路由 于路由 | 更新日期: 2023-09-27 18:37:18
我正在托管一个网站(网络表单应用程序),但加载登录页面显示此错误:http://blog.milstein.me
外部组件引发异常。System.Web.HttpCompileException (0x80004005):外部组件抛出了异常。at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.b__1(AssemblyBuilder assemblyBuilder) at System.Threading.Tasks.Parallel.<>c__DisplayClass32'2.b__30() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass11.b__10(Object param0) --- 从引发异常的先前位置的堆栈跟踪结束,---System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectory, Boolean isDirectoryAllowed) at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName,StringSet excludedSubdirectory) at System.Web.Compilation.BuildManager.EnsureFirstTimeDirectoryInit(VirtualPath virtualDir) at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate) 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.UI.TemplateControl.LoadControl(VirtualPathvirtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at SageFrame.Framework.PageBase.LoadControl(String UpdatePanelIDPrefix, Boolean IsPartialRendring, PlaceHolder ContainerControl, String ControlSrc, String PaneName, String strUserModuleID, String suffixClass, String HeaderText, Boolean IsUserAdmin, HtmlGenericControldivControl, HtmlGenericControl paneControl, Boolean IsEdit)
但是,主页和其他路由页面正在完美加载!此问题的主要原因是什么?如何解决?托管的 .NET 版本是 .NET 4.0。
这通常是由于宿主应用程序池缓存机制而发生的。在托管c-panel中,每个托管网站都有应用程序池清除选项。清除缓存后,它会正确加载所有新引用的 dll。