"Type initializer for 'Oracle.DataAccess.Client.OracleDependency' threw an exception" in ODP.Net Unmanaged Driver (Doc ID 2268780.1)

Last updated on MAY 26, 2017

Applies to:

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

Symptoms

Type initializer exception is thrown by the .NET application which makes use of ODP.NET Unmanaged driver to make database connection.
All the required dlls of ODP.NET Unmanaged driver are available and placed in the bin folder of the application.

The error message is as below :

 

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