How to add odp.net in my code?

J

jens Jensen

I want to connec to oracle database via ado.net 2.0.

the statement
OracleConnection ocn = new OracleConnection();





throws an exception: The type initializer for
'System.Data.OracleClient.OracleConnection' threw a....





It seems that i need ODP.NET ,



How to move forward?





many thanks in advance

JJ
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Can you post the complete text f the exception?
Also check if the InnerException property has any value and also post it
here
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top