OracleClient.OracleConnection issue
537495Oct 4 2006 — edited Oct 6 2006Hi,
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