My Oracle Support Banner

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

Last updated on MAY 17, 2021

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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.