I'm having the same problem. I have installed the ODBC drivers and have installed ODP.net. There is a reference made in my project to Oracle.DataAccess.dll yet I still get the same message.
error BC30466: Namespace or type 'OracleClient' for the Imports 'System.Data.OracleClient' cannot be found.
Here is my code that just trys to make a simple connection to the database:
<%@ Page Language="
vb" AutoEventWireup="false" Codebehind="OleDbConnection.aspx.
vb" Inherits="tryagain.OleDbConnection"%>
<%@ Import NameSpace="System.Data.OracleClient"%>
<Script runat="server">
Sub Page_Load( s As Object, e As EventArgs )
Dim conOracle As OracleConnection
conOracle = New OracleConnection("Data Source=trng;User Id=burrjh;Password=melissa84;")
conOracle.Open()
conOracle.Close()
End Sub
</Script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>OracleDbConnection</title>
<Script runat="server">
</Script>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
Connection Opened!
<form id="Form1" method="post" runat="server">
</form>
</body>
</HTML>
Thanks,
Jason