【发布时间】:2014-02-07 14:38:08
【问题描述】:
我发现了一个类似的问题,但我的问题没有解决方案。
无法加载文件或程序集“Antlr3.Runtime”或其其中之一 依赖关系。此程序集由比 当前已加载运行时,无法加载
我只在 IIS 中收到此错误。我正在尝试部署到 IIS 7.5。我将应用程序池设置为 4.0,Integrated。
之前一切正常。在我安装了框架 4.5 VS 2012 express 后,我使用MachineKeyCryptography 遇到了异常。所以我卸载了 4.5 框架和 VS 2012,因此发生了这种混乱。
我得到的异常如下。
描述:执行过程中发生了未处理的异常 当前的网络请求。请查看堆栈跟踪以获取更多信息 有关错误的信息以及它在代码中的来源。
异常详细信息:System.BadImageFormatException:无法加载文件 或程序集“Antlr3.Runtime”或其依赖项之一。本次大会 由比当前加载的运行时更新的运行时构建,并且 无法加载。
来源错误:
在执行过程中产生了一个未处理的异常 当前的网络请求。有关原产地和位置的信息 可以使用下面的异常堆栈跟踪来识别异常。
装配负载跟踪:以下信息可能有助于 确定无法加载程序集“Antlr3.Runtime”的原因。
警告:程序集绑定日志记录已关闭。启用程序集绑定 失败记录,设置注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) 为 1。注意:有 是与装配绑定失败相关的一些性能损失 记录。要关闭此功能,请删除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。
堆栈跟踪:
[BadImageFormatException: 无法加载文件或程序集 'Antlr3.Runtime' 或其依赖项之一。该程序集由 比当前加载的运行时更新的运行时,并且不能 加载。] System.Reflection.Assembly._nLoad(AssemblyName 文件名, 字符串 codeBase、证据 assemblySecurity、Assembly locationHint、 StackCrawlMark& stackMark,布尔 throwOnFileNotFound,布尔 forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, 证据组装Security, StackCrawlMark& stackMark, Boolean forIntrospection) +416
System.Reflection.Assembly.InternalLoad(字符串组装字符串, 证据组装Security, StackCrawlMark& stackMark, Boolean forIntrospection) +166 System.Reflection.Assembly.Load(String 组装字符串)+35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串 程序集名称,布尔星指令)+190[ConfigurationErrorsException: 无法加载文件或程序集 'Antlr3.Runtime' 或其依赖项之一。该程序集由 比当前加载的运行时更新的运行时,并且不能 已加载。]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串 程序集名称,布尔型星指令)+11244040
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210
System.Web.Compilation.BuildProvidersCompiler..ctor(虚拟路径 configPath, Boolean supportLocalization, String outputAssemblyName) +76 System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(布尔 isPrecompiledApp) +283
System.Web.Compilation.BuildManager.CompileGlobalAsax() +50
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676[HttpException (0x80004005): 无法加载文件或程序集 'Antlr3.Runtime' 或其依赖项之一。该程序集由 比当前加载的运行时更新的运行时,并且不能 已加载。]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025[HttpException (0x80004005): 无法加载文件或程序集 'Antlr3.Runtime' 或其依赖项之一。该程序集由 比当前加载的运行时更新的运行时,并且不能 已加载。] System.Web.HttpRuntime.FirstRequestInit(HttpContext 上下文)+11338038
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext 上下文) +88 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest WR,HttpContext 上下文)+4356276
【问题讨论】:
标签: .net iis .net-assembly