C# 托管基于路由的web应用程序

C# 托管基于路由的web应用程序,c#,asp.net,.net,hosting,web-hosting,C#,Asp.net,.net,Hosting,Web Hosting,我正在托管一个网站(一个webform应用程序),但加载登录页面时显示此错误: 外部组件引发了异常。System.Web.HttpCompileException(0x80004005):外部组件引发了异常。位于System.Web.Compilation.AssemblyBuilder.Compile()处的System.Web.Compilation.BuildProvidersCompiler.b_u1(AssemblyBuilder AssemblyBuilder)处的System.T

我正在托管一个网站(一个webform应用程序),但加载登录页面时显示此错误:

外部组件引发了异常。System.Web.HttpCompileException(0x80004005):外部组件引发了异常。位于System.Web.Compilation.AssemblyBuilder.Compile()处的System.Web.Compilation.BuildProvidersCompiler.b_u1(AssemblyBuilder AssemblyBuilder)处的System.Threading.Tasks.Parallel.c_u显示Class32`2.b_u30()处的System.Threading.Tasks.Task.InnerInvoke()处的System.Threading.Tasks.Task.InnerInvokeWithArg(Task-childTask)在System.Threading.Tasks.Task.c\u DisplayClass11.b\u 10(对象参数0)——从引发异常的前一个位置开始的堆栈结束跟踪——在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()的System.Web.Compilation.BuildProvidersCompiler.PerformBuild()处位于System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir、CodeDirectoryType dirType、String assemblyName、StringSet excludedSubdirectories、Boolean IsDirectoryLowed)的System.Web.Compilation.BuildManager.CompileCodeDirectoryDirectory(VirtualPath virtualDir、CodeDirectoryType dirType、String assemblyName、StringSet excludedSubdirectories)位于System.Web.Compilation.BuildManager.EnsureRefirStitTimeDirectory(VirtualPath virtualDir)位于System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal位于System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath VirtualPath,Boolean EnsureUpdate)的System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath VirtualPath,Boolean EnsureUpdate)中的(VirtualPath VirtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile、Boolean throwIfNotFound、Boolean EnsureIsureUpdate)位于System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext上下文、VirtualPath VirtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile、Boolean throwIfNotFound、Boolean EnsureUpdate)位于System.Web.UI.TemplateControl.LoadControl(VirtualPath VirtualPath)的System.Web.UI.TemplateControl.LoadControl(字符串VirtualPath)的SageFrame.PageBase.LoadControl(String UpdatePanelipPrefix、Boolean IsPartialRendring、占位符ContainerControl、String ControlSrc、String PaneName、String StruerModuleId、String后缀类、String HeaderText、Boolean IsUserAdmin、HtmlGenericControl divControl、HtmlGenericControl paneControl、Boolean IsEdit)

但是,主页和其他路由页面的加载非常完美!
出现此问题的主要原因是什么?如何解决?托管的.NET版本是.NET 4.0。

这通常是由于托管应用程序池缓存机制造成的。在托管c-panel中,每个托管网站都有应用程序池清除选项。清除缓存后,它会正确加载所有新引用的dll。

它似乎可以正常工作e now?@RobTillie你能解释一下错误日志的真正含义吗?它无法编译它试图加载的东西,从外观上看,它是你页面上的一个模板控件。如果它在本地工作正常,可能是由于部署中缺少一些引用,或者IIS中的.net配置错误。但是你解决了它,因为它正在正确加载否w?是的,现在工作正常了!谢谢!问题出在哪里?也许你可以加上它作为答案