Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ODP.Net 2.102.20 type initializer exception

524427Jul 21 2006 — edited Apr 29 2011
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2011
Added on Jul 21 2006
25 comments
56,820 views