c# - migrate 32 bit web site to 64 bit (2008 r2) with oracle odac -


I have been working well on Win2003 32bit with Web site Oracle 10G, Developers XP 32 bit VS 2005

I try to transfer to win2008r2 64 bit with Oracle 11G, but I can not get it to work Oracle.

I have installed Oracle Client for 32bit and 64bit

    Use the old code
  1. Change the change file

  2. The 32-bit system was enabled in IIS AppPoll < / P>

  3. Installing ODAC112021Xcopy_32bit

    gave me this error:

      Could not load file or assembly ' Oracle.DataAccess, version = 2.102.2.20, culture = neutral, public keyton = 89b483f429c47342 'or one of its dependencies   

    version = 2.102.2.20 is the old assembly that I have used < / P>

    1. Local By removing the 'Oracle.DataAccess' file, web / bin folder
    2. install ODAC112021Xcopy_x64 and

      gave me another error

       < Code> is not compatible with the version of the provider Oracle Client   

      Can someone divide some light on this issue?

      Tnx Gil

      The ODAC should be the same version on your development and production environment .

      I am using ODAC 11.2.0.1.0 which brings Oracle.DataAccess 2.112.1.0 dll and it works fine.

      Download 32 and 64 bit Odac version 11.2.0.1.0. Install 32-bit Odac and 64-bit Odacs on your server on your development machine.

      On Visual Studio, add a reference to Oracle.DataAvases. Set "specific" to "correct" and "local copy" in "wrong", so it looks like OXAC equal to 64 bits on GAC and this version (11.2.0.1.0) on the production server. / P>

      For more information, check this answer

Comments