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!

The type or namespace name 'OracleConnection' could not be found

24314Nov 28 2006 — edited Nov 30 2006
Hi,
I'm trying out the ODP example on otn. The project compiles ok until the OracleConnection constructor line is added. The error msg is listed below. What can be wrong?

/*
The type or namespace name 'OracleConnection' could not be found
(are you missing a using directive or an assembly reference?)
C:\HR\Visual Studio Projects\HR_Connect_CS\HR_Connect_CS\Form1.Designer.cs
128 17 HR_Connect_CS
*/

For troubleshoot, I move the odp bin path to the front of environment varisable PATH and reboot. But it doesn't help. The environment is Windows XP Pro, Oracle 10gR2, ODP 10.2 (installed from ODTwithODAC10202.exe), and Visual Studio 2005.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 28 2006
Added on Nov 28 2006
3 comments
5,103 views