I have Oracle Client 12 installed on my 32bit client (tnsping from client cmd):
TNS Ping Utility for 32-bit Windows: Version 12.1.0.2.0
And Oracle Client 12 installed on my 64bit Windows 2012R2 server (tnsping from server cmd):
TNS Ping Utility for 64-bit Windows: Version 12.1.0.2.0
When I compile my C#.NET application and publish it to my server I get the following exception:
Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client
In the bin
directory of my application on my server the Oracle.DataAcces.dll
is still 2.112.3.0
and not 2.121.2.0
(which is installed on my client and on my server).
Why is there the wrong Oracle.DataAccess.dll
file on my server?
I have set the Enable 32-bit Application bool to True in my application pool settings.
How can I get rid of this exception?