This project has moved. For the latest updates, please go here.
1

Closed

Error: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.

description

Symptoms: when the application starts, it shows an exception dialog that immediately disappears and closes the application, or the exception dialog remains and shows "The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.".

file attachments

Closed Sep 8, 2009 at 8:34 AM by codetuner
Solved in release 1.1

comments

codetuner wrote Sep 1, 2009 at 10:20 AM

The Q² application comes with the Oracle.DataAccess.dll, but does not install the whole Oracle client. It is advised to install the Oracle client (ODP.NET) to use Q² with Oracle.

codetuner wrote Sep 1, 2009 at 10:24 AM

This error can also mean a different version of ODP.NET is installed. In this case, look up the version of Oracle.DataAccess.dll that is already installed in the GAC, and bind the assembly by creating an Q2.exe.config file.
Attached a sample version that tells the application to use version 2.102.2.20 of the Oracle.DataAccess.dll.

wrote Sep 1, 2009 at 10:24 AM

codetuner wrote Sep 8, 2009 at 8:34 AM

This issue is solved with release 1.1 which does not use ODP.NET anymore.

wrote Sep 8, 2009 at 8:34 AM

wrote Jan 31, 2013 at 10:39 PM

wrote May 15, 2013 at 12:39 AM