Learning While Aging

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

0 0 votes
Article Rating
4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
David Dietle
10 years ago

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

Rupali
Rupali
9 years ago

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

swapan rana
swapan rana
9 years ago

thanks.

João Carlos Gonzales
João Carlos Gonzales
6 years ago

thank you, problem solved !!!