.NETGURU
getting MS oracle .NET client to work
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-oracle' list.


Michael Gerholdt
I recently installed the MS Oracle Client.

I have Oracle's NET8 (sqlnet) installed and working with other clients.

When I attempt to use the Oracle client in asp.net page,

error BC30466: Namespace or type 'OracleClient' for the Imports
'System.Data.OracleClient' cannot be found

Code as follows:

<%@ Page Language="VB" %>
<%@ Register TagPrefix="wmx" Namespace="Microsoft.Saturn.Framework.Web.UI"
Assembly="Microsoft.Saturn.Framework, Version=0.5.464.0, Culture=neutral,
PublicKeyToken=6f763c9966660626" %>
<%@ import Namespace="System" %>
<%@ import Namespace="System.Text" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OracleClient" %>
<script runat="server">

sub Page_Load(sender as Object, e as EventArgs)

Dim connString as String
connString = "Data Source=Oracle8i;Integrated Security=yes"

Dim myConn as New OracleConnection(connString)

==================

Thanks for any clues as to what I might have wrong.

Mike

Reply to this message...
 
    
Leon P Ford

Did you add a reference to the dll to your project?
---
Regards,
Leon

|---------+--------------------------->
| | "Michael |
| | Gerholdt" |
| | <gerholdt@fredon|
| | ia.edu> |
| | |
| | 08/01/2002 13:27|
| | Please respond |
| | to "ngfx-oracle"|
| | |
|---------+--------------------------->
>--------------------------------------------------------------------------------------------------------------------------------|
| |
| To: "ngfx-oracle" <Click here to reveal e-mail address> |
| cc: |
| Subject: [ngfx-oracle] getting MS oracle .NET client to work |
>--------------------------------------------------------------------------------------------------------------------------------|

I recently installed the MS Oracle Client.

I have Oracle's NET8 (sqlnet) installed and working with other clients.

When I attempt to use the Oracle client in asp.net page,

error BC30466: Namespace or type 'OracleClient' for the Imports
'System.Data.OracleClient' cannot be found

Code as follows:

<%@ Page Language="VB" %>
<%@ Register TagPrefix="wmx" Namespace="Microsoft.Saturn.Framework.Web.UI"
Assembly="Microsoft.Saturn.Framework, Version=0.5.464.0, Culture=neutral,
PublicKeyToken=6f763c9966660626" %>
<%@ import Namespace="System" %>
<%@ import Namespace="System.Text" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OracleClient" %>
<script runat="server">

sub Page_Load(sender as Object, e as EventArgs)

Dim connString as String
connString = "Data Source=Oracle8i;Integrated Security=yes"

Dim myConn as New OracleConnection(connString)

==================

Thanks for any clues as to what I might have wrong.

Mike

| [ngfx-oracle] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-oracle.asp = JOIN/QUIT

Reply to this message...
 
    
Moua, Xay
Add it to your reference. Importing does not reference the DLL.

Xay

-----Original Message-----
From: Michael Gerholdt [mailto:Click here to reveal e-mail address]
Sent: Thursday, August 01, 2002 1:28 PM
To: ngfx-oracle
Subject: [ngfx-oracle] getting MS oracle .NET client to work

I recently installed the MS Oracle Client.

I have Oracle's NET8 (sqlnet) installed and working with other clients.

When I attempt to use the Oracle client in asp.net page,

error BC30466: Namespace or type 'OracleClient' for the Imports
'System.Data.OracleClient' cannot be found

Code as follows:

<%@ Page Language="VB" %>
<%@ Register TagPrefix="wmx" Namespace="Microsoft.Saturn.Framework.Web.UI"
Assembly="Microsoft.Saturn.Framework, Version=0.5.464.0, Culture=neutral,
PublicKeyToken=6f763c9966660626" %>
<%@ import Namespace="System" %>
<%@ import Namespace="System.Text" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OracleClient" %>
<script runat="server">

sub Page_Load(sender as Object, e as EventArgs)

Dim connString as String
connString = "Data Source=Oracle8i;Integrated Security=yes"

Dim myConn as New OracleConnection(connString)

==================

Thanks for any clues as to what I might have wrong.

Mike

| [ngfx-oracle] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-oracle.asp = JOIN/QUIT

Reply to this message...
 
    
Michael Gerholdt
I'm developing in ASP.NET Web Matrix rather than .NET Studio. In .NET Studio
I can see the dll listed as something I can reference, however.

Is there a way I can reference it using Matrix or do I need to instead do
this project in .NET?

Thanks,
Mike

[Original message clipped]

Reply to this message...
 
    
Moore, Dot Net Guruhew
Web Matrix won't allow you to add specific DLL files as refrences to the project? It shows up in my cache list if I go to add it as a reference and then I make sure I have the following lines at the top of the code.

using System.Data;
using System.Data.OracleClient;

If that doesn't work, just copy the .dll file to your bin directory of your project and see if that works. System.Data.OracleClient.dll should be the appropriate file.

Dot Net Guru

-----Original Message-----
From: Michael Gerholdt [mailto:Click here to reveal e-mail address]
Sent: Friday, August 02, 2002 12:16 PM
To: ngfx-oracle
Subject: [ngfx-oracle] RE: getting MS oracle .NET client to work

I'm developing in ASP.NET Web Matrix rather than .NET Studio. In .NET Studio
I can see the dll listed as something I can reference, however.

Is there a way I can reference it using Matrix or do I need to instead do
this project in .NET?

Thanks,
Mike

[Original message clipped]

Reply to this message...
 
 
System.Data.OracleClient.OracleConnection
System.EventArgs




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification