Could not load file or assembly Oracle.DataAccess

后端 未结 6 1752
清歌不尽
清歌不尽 2021-02-02 08:34

I have an asp.net mvc (EF) project , I had downloaded oracle data provider with version 4.112.2.50 -32bit on my pc when moving project to windows server 2008 (I have the same ve

相关标签:
6条回答
  • 2021-02-02 08:41

    Changing app pool from 64-bit to 32-bit is a solution.

    0 讨论(0)
  • 2021-02-02 08:44

    Incorrect Format indicates a bitness problem. To get the server running change the application pool your program is running in to enable 32 bit support or install a 64 bit oracle client.

    0 讨论(0)
  • 2021-02-02 08:54

    In the IIS Manager select your server and select "Application Pools". Select the application pool used by your Web App and click on "Advanced Settings" from the right hand menu.

    In the "General Section" of the advanced Settings click on the "Enable 32-bit Applications" and set it to True.

    This fix only applies to 64-bit servers that attempt to execute the 32-bit version of the Oracle Dlls.

    Regards George

    0 讨论(0)
  • 2021-02-02 08:57

    George Wrote:

    In the IIS Manager select your server and select "Application Pools". Select the application pool used by your Web App and click on "Advanced Settings" from the right hand menu.

    In the "General Section" of the advanced Settings click on the "Enable 32-bit Applications" and set it to True.

    This fix only applies to 64-bit servers that attempt to execute the 32-bit version of the Oracle Dlls.

    The opposite is also true. If you are using the 64 bit version of the Oracle Dlls then you must set "Enable 32-bit Applications" to false.

    --Jacob

    0 讨论(0)
  • 2021-02-02 09:03

    Deleting bin and obj folders solved my problem.

    0 讨论(0)
  • 2021-02-02 09:08
    1. Oracle.DataAccess.dll must be installed not only referenced.
    2. Change the copy local property of the reference to true.
    0 讨论(0)
提交回复
热议问题