ODP.Net 2.102.20 type initializer exception
524427Jul 21 2006 — edited Apr 29 2011I have just upgraded a development machine to the latest version of ODP.Net version 2.102.20. Running asp.net 2.0
My windows .net applications and web applications are now referencing the new Oracle.DataAccess.dll ( 2.102.20) and work fine.
However, I have two .Net windows services, neither now work with the new ODP.NET assembly.
I have attached to these services at startup to debug and I get an exception when trying to instantiate the OracleConnection object.
OracleConnection conn = new OracleConnection(connstr);
I get the following exception
The type initializer for "Oracle.DataAccess.Client.OracleConnection" threw an exception.
I have also tried not passing connection string as parameter but get same exception.
I am only getting this error from a windows services, not console, windows or web apps.
Anybody experiencing same or have any idea how to resolve this
Any help appreciated
Regards
Ade