【发布时间】:2013-07-01 17:12:25
【问题描述】:
我的 Web 服务出现问题,无法再运行。之前安装的是 64 位版本,现在安装的是 32 位版本。但是,它似乎在寻找64位版本的ChilkatDotNet2.dll,这很奇怪。 MSI-package 安装的版本是 X86。
C:\Program Files (x86)\Sipp\Market Server\bin>asminfo.exe ChilkatDotNet2.dll ChilkatDotNet2,版本=9.3.0.0,文化=中性, PublicKeyToken=eb5fc1fc52ef09b d | X86
我启用了 FusionLog,它给出了以下输出:
描述:执行过程中发生了未处理的异常 当前的网络请求。请查看堆栈跟踪以获取更多信息 有关错误的信息以及它在代码中的来源。
异常详细信息:System.BadImageFormatException:无法加载文件 或程序集“ChilkatDotNet2”或其依赖项之一。一次尝试 加载了格式不正确的程序。
来源错误:
在执行过程中产生了一个未处理的异常 当前的网络请求。有关原产地和位置的信息 可以使用下面的异常堆栈跟踪来识别异常。
装配负载跟踪:以下信息可能有助于 确定无法加载程序集“ChilkatDotNet2”的原因。
=== 预绑定状态信息 === LOG: User = SF\sonsupport LOG: DisplayName = ChilkatDotNet2 (Partial) LOG: Appbase = file:///C:/Program Files (x86)/Sipp/Market Server/ LOG: Initial PrivatePath = C:\Program Files (x86)\Sipp\Market Server\bin 调用 组装:(未知)。 === LOG:此绑定在默认加载上下文中开始。 LOG:使用应用程序配置文件:C:\Program Files (x86)\Sipp\Market Server\web.config LOG:使用主机配置文件: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config 日志: 使用来自的机器配置文件 C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config。 日志:此时未将策略应用于参考(私人, 自定义、部分或基于位置的程序集绑定)。日志:尝试 下载新网址 file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET 文件/服务器/b8e4736f/d41d574d/ChilkatDotNet2.DLL。日志: 正在尝试下载新 URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET 文件/服务器/b8e4736f/d41d574d/ChilkatDotNet2/ChilkatDotNet2.DLL。日志: 正在尝试下载新的 URL file:///C:/Program Files (x86)/Sipp/市场服务器/bin/ChilkatDotNet2.DLL。错误:未能 组装的完整设置(hr = 0x8007000b)。探测终止。
堆栈跟踪:
[BadImageFormatException: 无法加载文件或程序集 'ChilkatDotNet2' 或其依赖项之一。试图 加载格式不正确的程序。]
System.Reflection.Assembly._nLoad(AssemblyName 文件名,字符串 代码库、证据组装安全、组装位置提示、 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: 无法加载文件或程序集 'ChilkatDotNet2' 或其依赖项之一。试图 加载格式不正确的程序。]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串 assemblyName,布尔型 starDirective) +11241896
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.WebDirectoryBatchCompiler..ctor(虚拟目录 vdir) +191
System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(虚拟目录 vdir,布尔忽略错误)+54
System.Web.Compilation.BuildManager.CompileWebFile(虚拟路径 虚拟路径)+295
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(虚拟路径 virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +476
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext 上下文,VirtualPath virtualPath,布尔 noBuild,布尔 allowCrossApp,布尔值 allowBuildInPrecompile) +116
System.Web.Compilation.BuildManager.GetCompiledCustomString(字符串 虚拟路径)+39
System.ServiceModel.HostingManager.GetCompiledCustomString(字符串 标准化虚拟路径)+202
System.ServiceModel.HostingManager.CreateService(字符串 normalizedVirtualPath) +33
System.ServiceModel.HostingManager.ActivateService(字符串 normalizedVirtualPath) +46
System.ServiceModel.HostingManager.EnsureServiceAvailable(字符串 normalizedVirtualPath) +654[ServiceActivationException: 服务 '/server/service.svc' 不能 由于编译过程中的异常而被激活。例外 消息是:无法加载文件或程序集“ChilkatDotNet2”或其中之一 它的依赖关系。试图加载一个带有 格式不正确..]
System.ServiceModel.AsyncResult.End(IAsyncResult 结果) +15778592
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult 结果)+15698937
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication 上下文,布尔流上下文)+265
System.ServiceModel.Activation.HttpModule.ProcessRequest(对象 发件人,EventArgs e) +227
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
【问题讨论】:
-
你有contacted the supplier的图书馆吗?
标签: c#