托管基于路由的Web应用程序

时间:2015-01-12 18:10:20

标签: c# asp.net .net hosting web-hosting

我正在托管一个网站(一个网络表单应用程序),但加载登录页面显示此错误: http://blog.milstein.me

  

外部组件抛出异常。 System.Web.HttpCompileException(0x80004005):外部组件抛出异常。 System.Threading上的System.Web.Compilation.AssemblyBuilder.Compile()位于System.Threading.Tasks.Parallel的System.Web.Compilation.BuildProvidersCompiler.b__1(AssemblyBuilder assemblyBuilder)。<> c__DisplayClass32`2.b__30() System.Threading.Tasks.Task的System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)中的.Tasks.Task.InnerInvoke()。<> c__DisplayClass11.b__10(对象param0)---堆栈跟踪结束抛出异常的先前位置--- System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly上的System.Web.Compilation.BuildProvidersCompiler.PerformBuild()处的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()(VirtualPath virtualDir,CodeDirectoryType dirType, System Assembly.Web.Compila上的System Assembly.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir,CodeDirectoryType dirType,String assemblyName,StringSet excludedSubdirectories)中的字符串assemblyName,StringSet excludedSubdirectories,Boolean isDirectoryAllowed) System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath,Boolean)上的System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey,Boolean keyFromVPP,VirtualPath virtualPath,Int64 hashCode,Boolean ensureIsUpToDate)中的.BuildManager.EnsureFirstTimeDirectoryInit(VirtualPath virtualDir)在System.Web.Compilation.BuildManager.Get上创建了System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath,Boolean noBuild,Boolean allowCrossApp,Boolean allowBuildInPrecompile,Boolean throwIfNotFound,Boolean ensureIsUpToDate)(HttpContext上下文,VirtualPath virtualPath,布尔值noBuild)的EnsureIsUpToDate ,布尔值allowCrossApp,布尔值allowBuildInPrecompile,Boolean throwIfNotFound,Boolean ensureIsUpToDate)位于SageFrame.Framework.PageBase.LoadC的System.Web.UI.TemplateControl.LoadControl(String virtualPath)上的System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) ontrol(String 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。

1 个答案:

答案 0 :(得分:0)

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