【问题标题】:Could not load file or assembly 'Telerik.Reporting' on IIS without any references in the project to it如果项目中没有对它的任何引用,则无法在 IIS 上加载文件或程序集“Telerik.Reporting”
【发布时间】:2014-03-10 15:35:05
【问题描述】:

我在 IIS 上有一个网站。有很多虚拟文件夹,上面有不同的站点。

我更新了其中一个并得到“无法加载文件或程序集'Telerik.Reporting, Version=6.2.13.110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' 或其依赖项之一。系统无法找到指定的文件。”

其他虚拟文件夹的站点上出现相同的错误。

堆栈跟踪。`[FileNotFoundException:无法加载文件或程序集“Telerik.Reporting,版本=6.2.13.110,文化=中性,PublicKeyToken=a9d7983dfcc261be”或其依赖项之一。该系统找不到指定的文件。] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,证据 assemblySecurity,RuntimeAssembly reqAssembly,StackCrawlMark 和 stackMark,IntPtr pPrivHostBinder,布尔 throwOnFileNotFound,布尔 forIntrospection,布尔 suppressSecurityChecks)+210 System.Reflection.RuntimeAssembly.InternalLoad(字符串 assemblyString,证据 assemblySecurity,StackCrawlMark 和 stackMark,IntPtr pPrivHostBinder,Boolean forIntrospection)+242 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, 证据 assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17 System.Reflection.Assembly.Load(String assemblyString) +35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122

[ConfigurationErrorsException:无法加载文件或程序集“Telerik.Reporting,版本=6.2.13.110,Culture=neutral,PublicKeyToken=a9d7983dfcc261be”或其依赖项之一。该系统找不到指定的文件。] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +12761078 System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +214 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334 System.Web.Compilation.BuildManager.CallPreStartInitMethods(字符串 preStartInitListPath)+203 System.Web.Compilation.BuildManager.ExecutePreAppStart() +152 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151

[HttpException (0x80004005): 无法加载文件或程序集“Telerik.Reporting,版本=6.2.13.110,文化=中性,PublicKeyToken=a9d7983dfcc261be”或其依赖项之一。该系统找不到指定的文件。] System.Web.HttpRuntime.FirstRequestInit(HttpContext 上下文) +12881540 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext 上下文)+159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722601`

但在这个项目中,我根本不使用 Telerik。我在 IIS 上创建了新站点,部署了这个项目并且一个运行良好。但在主要的我仍然得到错误。

我应该怎么做才能从具有虚拟文件夹的站点中删除此问题?我必须将这个项目部署到它。我不能删除它并创建一个新的。

有什么建议吗?重新启动没有帮助。

【问题讨论】:

  • 可能是您引用的东西反过来又引用了 Telerik。您是否更改了任何 AppPools(例如从 .NET 2 到 .NET 4)?
  • 我玩过 AppPools。它没有帮助。
  • web.config 是否引用了这个 dll,任何 web.config?
  • 没有。项目中的任何引用。
  • 这是子应用吗?如果是这样,请检查根应用程序的 web.config 是否有任何对 Telerik 的引用。

标签: c# asp.net iis telerik iis-7.5


【解决方案1】:

可能还有其他引用 Telerik 程序集的 Web.configs。您需要检查所有这些

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-20
    • 2017-12-23
    • 2013-10-28
    • 1970-01-01
    • 1970-01-01
    • 2012-08-29
    • 1970-01-01
    相关资源
    最近更新 更多