While trying to connect to oracle database from .net getting the following exception:
Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
After going through many links i tried to overcome this exception by changing the platform target to Any CPU.Since it is wpf application,after changing the platform target it is throwing the following exception:
The invocation of the constructor on type 'SSC_GIP_UI.MainWindow' that matches the specified binding constraints threw an exception.' Line number '3' and line position '9'
But it runs fine with platform target x86 without throwing the above exception ,but it throws BadImageFormatException
.
The enironment on which i am working is:
Windows server 2008,
.net framework 4.0,
oracle 11g (64-bit)
Can anyone tell me.how to fix it?