Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle.DataAccess is failing when applicaion is debug from visual studio

5856d969-d9ce-4466-ba47-6670cd7dde73Feb 5 2016 — edited Feb 5 2016

Hi,

I have one ASP.NET web service application which is using Oracle.DataAcess to communicate with Oracle data base, my operating system is Windows server 2012  64 BIT and I have installed Oracle client.

in my application I am giving reference to Oracle.DataAccess.dll from C:\Oracle\product\12.1.0\client_1\ODP.NET\bin\4\

when I run the application in Visual studio 2015 I am getting an error as

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.

Then I have hosted in in IIS and getting the same issue, but then I have change the default app pool setting and change the Enable 32-bit application to false and it is running fine. please let me know how can I solve this issue while debugging from Visual studio.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2016
Added on Feb 5 2016
1 comment
1,336 views