Could not load file or assembly Oracle.DataAccess Could not load file or assembly Oracle.DataAccess oracle oracle

Could not load file or assembly Oracle.DataAccess


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.

RegardsGeorge


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.