使用 .NET 应用程序连接到 Oracle 时出现错误:System.BadImageFormatException:尝试加载格式不正确的程序

发布于 2024-08-30 05:47:29 字数 242 浏览 2 评论 0原文

我正在尝试通过 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

后来的我们 2024-09-06 05:47:29

将您的 .NET 应用程序编译为 x86,然后重试。

Compile your .NET application as x86, and then try again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文