C# OracleConnection exception
Posted on 2014-10-20
I took over a C# solution from someone who has left the company. There were a few dlls missing from the solution. I downloaded them using NuGet in order to make the projects compiled and built. However, when I run one of the projects, an exception is thrown:
The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.
"The provider is not compatible with the version of Oracle client"
Can anyone please point me to a direction of how to resolve this issue?
I am running my code using VS2012 targeting C# 4.0 and x86 plateform.
My machine is Windows 7 64-bit.
The version of Oracle.DataAccess.dll I downloaded is x86 126.96.36.199.