【发布时间】:2011-12-08 15:59:42
【问题描述】:
我有一个从 asp.net 1.1 (VS 2003) 迁移到 Asp.net 2 (VS 2008) 的 Web 应用程序。 我在新版本上执行 Oracle 连接时遇到问题。开发环境是 64 位七。当生成具有所有 CPU 的应用程序时,我在 System.Data.OracleClient 上遇到问题,异常 System.BadImageFormatException: Tentative dechargement d'un program de format wrong. (HRESULT 异常:0x8007000B)。 .我在 x86 CPU 上生成,启动时出现此错误:
[BadImageFormatException: Impossible de Charger le fichier ou l'assembly 'CpimWebApplication' ou une de ses dépendances。暂定的 dechargement d'un program de format 不正确。]
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
有什么问题?机器上的 Oracle 客户端是 32 位版本。 我在网上读到不能将 System.data.OracleClient 与 32 位 oracle 客户端一起使用?安装 64 位 Oracle 客户端是解决方案吗? TIA 问候
【问题讨论】:
标签: .net windows system.data.oracleclient