无法从 asp.net 连接到 oracle 11g

could not connect to oracle 11g from asp.net

我在我的 32 机器上开发了一个 asp.net 应用程序。我将它托管在具有 32 位 oracle 11g 的 64 位服务器中。我使用 32 位 oracle.dataaccess.dll 连接到数据库服务器,一切正常。

最近服务器中的 32 位 oracle 11g(11.2.02) 被 64 位 oracle 11g(11.2.04) 取代。从那里我的网站开始崩溃。每当我打开网站时,我都会收到错误

"The provider is not compatible with the version of Oracle client"

但我仍然可以使用 visual studio 2010 express 从我的开发机器 运行 站点。

谁能帮我解决这个问题?

我通过在部署服务器中为 oracle 11g 安装 32 位 ODAC 解决了这个问题。