【问题标题】:migrate 32 bit web site to 64 bit (2008 r2) with oracle odac使用 oracle odac 将 32 位网站迁移到 64 位 (2008 r2)
【发布时间】:2011-07-16 16:19:39
【问题描述】:

我的网站在 win2003 32bit 和 oracle 10g 上运行良好,开发人员在 XP 32bit 和 VS2005

我尝试使用 oracle 11g 迁移到 win2008r2 64 位,但我无法让 oracle 工作。

我安装了 32 位和 64 位的 oracle 客户端

  1. 使用旧代码
  2. 修改配置文件

  3. 在 IIS 中启用 32 位系统 应用投票

  4. 安装 ODAC112021Xcopy_32bit

给了我这个错误:

Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified

Version=2.102.2.20 是我使用的旧程序集

  1. 删除本地 'Oracle.DataAccess' 文件来自 web/bin 文件夹
  2. 安装 ODAC112021Xcopy_x64 和

又犯了一个错误

The provider is not compatible with the version of Oracle client 

任何人都可以就这个问题发表一些看法吗?

Tnx 吉尔

【问题讨论】:

    标签: c# oracle11g iis-7.5 32bit-64bit


    【解决方案1】:

    ODAC 在您的开发和生产环境中必须是相同的版本。

    我正在使用 ODAC 11.2.0.1.0,它带来了 Oracle.DataAccess 2.112.1.0 dll,它工作正常。

    下载 32 位和 64 位 ODAC 版本 11.2.0.1.0。 在您的开发机器上安装 32 位 ODAC,在您的服务器上安装 64 位 ODAC。

    在 Visual Studio 上,添加对 Oracle.DataAccess 的引用。 将“特定版本”设置为“True”,将“包括本地副本”设置为“False”,因此它会从 GAC 和相同版本 (11.2.0.1.0) 中查找 ODAC,但它在生产服务器上的 64 位等效版本。

    欲了解更多信息,请查看此答案Installing Oracle 10 ODP.NET on Microsoft Windows 2008 Server 64bit

    【讨论】:

      猜你喜欢
      • 2014-08-13
      • 1970-01-01
      • 2013-11-21
      • 2017-12-11
      • 1970-01-01
      • 1970-01-01
      • 2018-02-17
      • 2015-04-14
      • 2011-09-12
      相关资源
      最近更新 更多