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

I am using ASP.NET..I have the reference added to the solution..

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Xml" %>
<%@ Import Namespace="System.Data.OracleClient" %>

I get the same error with
<%@ Import Namespace="Oracle.DataAccess" %>

I have no idea what I am missing..

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

do you in fact have a REFERENCE (Solution Explorer) to the System.Data.OracleClient DLL?  It is not simply a matter of Importing the NameSpace on your page, you must also add the Reference .

He's using page directive to import namespaces...which makes me think he's not using VS.net?(No Solution Explorer to add ref)

The actual dll does need to be in your \bin folder, is it there?

You might also want to look into this:
click around, there is a faq in there....it is a namespace provided by oracle that is supposed to be geared specifically for .Net development and more robust than the system.data.oracleclient
vandy02Author Commented:
Yes, I am using VS.NET
I have been able to use both of them for windows applications and I was able to use them with a web service, but not ASP.  Confused..
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

vandy02Author Commented:
yes, i have the odp one..is that not this one 'Oracle.DataAccess'?
vandy02Author Commented:
I GOT IT!...
Strange...I actually had to put the System.Data.OracleClient.dll in the Bin folder of the ASP page...it did not recognize the path I guess...
Thanks as it was the replies that led me to the conclusion.

Thanks again!
vandy02Author Commented:
please close
PAQed with points refunded (125)

Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.