使用 .NET 应用程序连接到 Oracle 时出现错误:System.BadImageFormatException:尝试加载格式不正确的程序
我正在尝试通过 .NET 应用程序从 Windows Server(生产环境)查询远程 Oracle 数据库。 我不断收到此异常。我的系统上安装了 Oracle XE 客户端。我尝试安装 Oracle 64 位连接器,但 JVM 不允许我这样做。
异常:System.BadImageFormatException:尝试加载格式不正确的程序。 (HRESULT 异常:0x8007000B)
我很感激任何想法。
I am trying to Query a remote Oracle database from a Windows Server(production environment) through a .NET app.
I keep getting this exception. I have Oracle XE client installed on the system. I tried to install Oracle 64 bit connectors but the JVM won't allow me to do so.
Exception: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
I'd appreciate any thoughts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将您的 .NET 应用程序编译为 x86,然后重试。
Compile your .NET application as x86, and then try again.