Could not load file or assembly Oracle.DataAccess

为君一笑 提交于 2019-12-02 20:13:20

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

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

  1. Oracle.DataAccess.dll must be installed not only referenced.
  2. Change the copy local property of the reference to true.

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.

ward coysman

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

Deleting bin and obj folders solved my problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!