64 位 windows 10 pro visual studio 和 oracle 64 位 - oracle 不是 64 位的错误

64 bit windows 10 pro visual studio and oracle 64 bit - error that oracle is not 64 bit

我需要将 oracle 数据库连接到 C# 应用程序,每当我测试连接时,我都会收到一条错误消息 "Attempt to load Oracle client libraries threw BadImageFormatExceptio. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed."

我 100% 确定我安装了 Oracle 11g 64 位。 我 100% 确定我有 windows 10 pro 64 位。 我以为我确定我有一个 64 位 visual studio,但经过一些检查和研究,似乎没有“64 位”visual studio。

难道问题实际上是安装了 64 位版本的 Oracle 11g?如果没有,关于如何解决这个问题的任何建议?

我尝试了网上能找到的所有解决方案,我尝试在 visual studio 2015 年和 2017 年添加数据源。

如有任何帮助,我们将不胜感激。

我通过安装 oracle 11g express 32 位和正常的 oracle 11g 64 位解决了这个问题,我不知道是什么导致了这个问题,因为一切都应该在 64 位中运行良好。