"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 and later
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)


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 :



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