TROUBLESHOOTING: Explanation of System.TypeInitializationException Running an ODP.NET Application

(Doc ID 1161733.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Data Provider for .NET - Version 9.2.0.8 and later
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)


***Checked for relevance on 10-Oct-2016***

Symptoms

Trying to run a .NET application that uses the Oracle Data Provider for .NET may result in the following error:

System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. ---> Oracle.DataAccess.Client.OracleException The provider is not compatible with the version of Oracle client at Oracle.DataAccess.Client.OracleInit.Initialize()
at Oracle.DataAccess.Client.OracleConnection..cctor()

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms