Assembly System.Data.OracleClient not found, from framework 1.1?

T

Thomas H

Hello everyone, hopefully someone can help me out!

I'm writing a C# console application that will access an Oracle database.
VS.NET isn't recognizing the System.Data.OracleClient namespace! I have
intellisense enabled, when I start typing "using System.Data.", I can only
choose from Common, Odbc, OleDb, SqlClient, and SqlTypes. OracleClient
isn't a choice.

And, if I do go ahead and finish typing System.Data.OracleClient, when I try
to build the empty application, I get the following error:

"The type or namespace name 'OracleClient' does not exist in the class or
namespace 'System.Data' (are you missing an assembly reference?)"

I'm using Visual Studio .NET 2003, Enterprise Architect. The .NET Framework
version 1.1 is installed. The machine is an XP Pro box with Plenty of
resources available, and this box has never seen VS2002 or .NET 1.0. Yes,
the Oracle Client is installed, version 9iR2, and it's working correctly.
The sequence of installation was the .NET Framework 1.1, the Oracle Client
itself, and finally, VS.NET 2003 EA.

If I hop to the command prompt, I can see System.Data.OracleClient.dll in
the C:\windows\Microsoft.NET\framework\v1.1.4322 directory.

What am I missing?

I even went back to my old box (Win2k with Oracle 8.1.7 client and VS.NET
2003 EA installed), and tried the same thing- and the same problems occur-
OracleClient doesn't appear from Intellisense, and if I type "using
System.Data.OracleClient" anyway (in a blank C# class), I get the same error
that I cut/pasted above (about the namespace not existing).

Thanks!!

-Thomas
 
T

Thomas H

Thomas H said:
Hello everyone, hopefully someone can help me out!

I'm writing a C# console application that will access an Oracle database.
VS.NET isn't recognizing the System.Data.OracleClient namespace! I have
intellisense enabled, when I start typing "using System.Data.", I can only
choose from Common, Odbc, OleDb, SqlClient, and SqlTypes. OracleClient
isn't a choice.

And, if I do go ahead and finish typing System.Data.OracleClient, when I try
to build the empty application, I get the following error:

"The type or namespace name 'OracleClient' does not exist in the class or
namespace 'System.Data' (are you missing an assembly reference?)"

I'm using Visual Studio .NET 2003, Enterprise Architect. The .NET Framework
version 1.1 is installed. The machine is an XP Pro box with Plenty of
resources available, and this box has never seen VS2002 or .NET 1.0. Yes,
the Oracle Client is installed, version 9iR2, and it's working correctly.
The sequence of installation was the .NET Framework 1.1, the Oracle Client
itself, and finally, VS.NET 2003 EA.

If I hop to the command prompt, I can see System.Data.OracleClient.dll in
the C:\windows\Microsoft.NET\framework\v1.1.4322 directory.

What am I missing?

Nevermind! I figured it out, thanks to Andy's message at
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=O1MaFAzxCHA.1288@TK2MSFTNGP11 !
In my solution explorer, I had to right-click the "references" group, add
reference, and then add System.Data.OracleClient.dll to the project.
Hopefully this helps someone out in the future!

Thanks,

-Thomas
 

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