Skip to Main Content

DevOps, CI/CD and Automation

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!

OracleClient.OracleConnection issue

537495Oct 4 2006 — edited Oct 6 2006
Hi,

I am facing a wierd problem while instantiating an OracleConnection object from a C# windows application. Here is the code I am using for instantiating the connection object:

using System.Data;
using System.data.OracleClient;

//Some code for retrieving User ID and Password.
OracleConnection conn = new OracleConnection();

This piece of code compiles and runs fine if a put a break point before creating the connection object. But if I run the application without any breakpoints in the code, it breaks. Here is the exception I get:

{"The type initializer for 'System.Data.OracleClient.OracleConnection' threw an exception."}

Did anyone ever come across this problem. Any inputs will be appreciated.

Pallavi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2006
Added on Oct 4 2006
4 comments
5,364 views