First time here? Check out the FAQ!
x

How do I resolve the following error message: "New-Object: Exception calling ".ctor" with "1" argument(s): "The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception."

0 votes
asked by
edited by

How do I resolve the following error message: "New-Object: Exception calling ".ctor" with "1" argument(s): "The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception."

1 Answer

0 votes
answered by (309k points)

Based on the information gathered from various forums, it appears that you have to make sure the Oracle.DataAccess.dll used in the application is the same as the computer's architecture. The problem is related to the 32 and 64bit architecture. Make sure that everything corresponds correctly and then try again.

asked Feb 24, 2016
edited Apr 8, 2016 by
How do I tell if the DLL is 32bit or 64bit?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...