I am having trouble with Oracle.DataAccess
in WPF
. I used Oracle.DataAccess v4.0
without any problems. But now it updated to version 4.112 and when I add reference to this version in WPF
the designer could not be loaded. It gives me the following error:
System.BadImageFormatException
Could not load file or assembly 'Oracle.DataAccess,
Version=4.112.3.0, Culture=neutral,
PublicKeyToken=89b483f429c47342' or one of its dependencies.
An attempt was made to load a program with an incorrect format.
Please note that program runs without any problem. I read that it can be due to "target cpu" in properties. I tested both x64 and x86 but nothing changes. How can I solve this problem. Thanks in advance
Http 5.2. 0.0? In summary if you get the "Could not load file or assembly error", this means that either your projects or their references were built with a reference to a specific version of an assembly which is missing from your bin directory or GAC.
OraProfCfg.exe is a platform-independent (?) (AnyCPU) tool to configure ODP.NET drivers (managed and unmanaged). There are two versions of this executable, one is located under _arch = x86 and one under _arch = x64 .
The problem was with my Oracle.DataAccess.dll file. I have downloaded ODAC 11 XCopy and copied Oracle.DataAccess.dll from \odp.net4\odp.net\bin\4 to my OracleClient's \odp.net\bin\4 folder and replaced dlls. Now it works like a charm.
Hope it will be helpful to someone else
I faced same issue I solved by putting dependencies DLL to Oracle.DataAcces. check this link What is the minimal setup required to deploy a .NET application with Oracle client 11?
Hope It should help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With