Link to home
Start Free TrialLog in
Avatar of bozworthy
bozworthyFlag for United States of America

asked on

Cannot import System.Data.OracleClient

I just got a new development laptop.  Trying to work through the normal pain of reinstalling everything for Visual Studio 2005 but this is stumping me:  Getting "Doesn't contain any public member or cannot be found" for Imports System.Data.oracleclient. Intellisense doesn't even show OracleClient.

I have the Oracle Client 10g software installed and can see the System.Data.OracleClient.dll in C:\WINNT\Microsoft.NET\Framework\v2.0.50727.  I have added a Reference to the project for System.Data.OracleClient V2.0 and can see it listed in the references section. I can connect to a database in the Net Manager app of oracle and also connected and updated the database using Toad for Oracle so the Oracle install seems solid.  Please help.
Screen-of-references.docx
Avatar of bozworthy
bozworthy
Flag of United States of America image

ASKER

I should add that this same project worked on my old laptop.  I'm attempting to open the same folder on the new machine. Also, System.Data.OracleClient is importing successfully in ASP pages.  It is a VB module in the App_code folder that is having the problem.
Avatar of kaufmed
Did you install ODAC?
No I don't think so. I don't believe it's been required in the past. Can you address why the namespace loads in ASP pages but not the VB module in the App_Code section?
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial