Could not load file or assembly Oracle.DataAccess or one of its dependencies. An attempt was made to load a program with an incorrect format

If you are running a web application on 64-bit machine and if the web application is using Oracle.DataAccess assembly, then you may receive this error:

Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.

To fix this error, you will need to go to your IIS manager and locate the application pool that the web application is using, then right-click the application pool, and go to Advanced Settings, then set “Enable 32-bit Applications” to true. After this, your web application should be running fine.

Hope this helps.

 

IIS_Enable_32bit_Applications

4
Leave a Reply

avatar
4 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
João Carlos Gonzalesswapan ranaRupaliDavid Dietle Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
David Dietle
Guest

You just ended 2 days of head banging and swearing, thank you. 🙂

Rupali
Guest
Rupali

Thank you so much…
Really works for me.
I had uninstall oracle 2 times for this issue.

swapan rana
Guest
swapan rana

thanks.

João Carlos Gonzales
Guest
João Carlos Gonzales

thank you, problem solved !!!