I have installed Oracle 11.2.0.1 64 bit version in windows 7 64 bit machine. When i try to connect Oracle DB through C# console application(VS2012) its working fine when i choose platform target as AnyCPU/X64 its working fine. If i choose X86 it shows the below error
Could not load file or assembly 'Oracle.DataAccess, Version=2.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format.
It's correct i have installed the X64 version dll and it shows error when i try to run in 32 bit mode.
When i integrate the my Data layer with my business layer it shows the error if i choose AnyCPU/X64 mode. How can i resolve this error.
P.S - I have installed oracle home only.Haven't installed the client version.