6 Replies Latest reply: Oct 3, 2013 2:42 AM by de4d356a-dc6b-441e-9ebe-aeff5db31b24 RSS

    ODP.NET4, "The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception."

    de4d356a-dc6b-441e-9ebe-aeff5db31b24

      Hi,

      I created a VS2010 VB.NET project x86 compiled.

      I use ODP.NET4 for the OracleConnection. For the first time, when I try to run my application on a Windows XP machine, I get this error:

       

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

       

      Stack Trace:

         in Oracle.DataAccess.Client.OracleConnection.Dispose(Boolean disposing)

         in System.ComponentModel.Component.Finalize()"

       

      The machine has the Oracle Client 11g installed and also the ODP.NET4 correctly installed as the ODAC instructions say.

      I never ran into this problem, my application has always worked on other machine, I tried everything i could or i read on the web but nothing worked...

       

      Could someone help me?

       

      Thanks

      G.