Re: Asp.net / iis / oracle problem
- From: "BookerW" <BookerW@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 7 Feb 2006 13:51:29 -0800
ok, i removed the double concatenating, and i will try it again. Can i
download the odp.net stuff
"Cowboy (Gregory A. Beamer)" wrote:
Oracle is a pain. You need a good portion of the Oracle client software.
installed to use .NET with the OracleClient namespace (or even ODP.NET for
that matter). It is more than the libraries necessary for the Oracle SQL
tools, like SQL*Plus.
Watch your connection string, as well. You are concatenating OLEDB_PROVIDER
twice. Once in your If ... Else and once in the OleDbConnection creation.
--
Gregory A. Beamer
*************************************************
Think Outside the Box!
*************************************************
"BookerW" <BookerW@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:757A6DF6-A871-4C07-8E82-F42377ECDD29@xxxxxxxxxxxxxxxx
I am not sure which forum I should post this on, but here is the problem.
I
have a front end web application(VB) on asp,net 1.1 framework. Inside of
the
code, I have the following lines to connect to the database
If gbSQLServer Then
'sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=c:\w\vgyl\hy.mdb"
gsConnectionString = "Provider=SQLOLEDB;Data Source=frt4;Initial
Catalog=SRMSM;Integrated Security=SSPI"
Else
If gbDevelopment Then
gsConnectionString = OLEDB_PROVIDER & "User
ID=ght;Password=" & DB_PASSWORD & ";Data Source=vgy"
gsConnectionString = OLEDB_PROVIDER & "User
ID=ght;Password=" & DB_PASSWORD & ";Data Source=vgyl"
Else
gsConnectionString = OLEDB_PROVIDER & "User
ID=ght;Password=" & DB_PASSWORD & ";Data Source=vgyl"
End If
And in most places when the code tries to connect to the database, it is
done in this format:
Dim cn As OleDbConnection = OpenDatabase(OLEDB_PROVIDER &
gsConnectionString)
The error that I get is below, and I am not sure if the error is related
to
the attempt to open the data source, or if it is as plain as stated, that
the
box does not think that the Oracle Client is not installed... WHICH it is.
I
installed oracle 9i client
Server Error in '/gt' Application.
--------------------------------------------------------------------------------
Oracle client and networking components were not found. These components
are
supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or
later client software installation. Provider is unable to function until
these components are installed.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about
the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Oracle client and
networking components were not found. These components are supplied by
Oracle
Corporation and are part of the Oracle Version 7.3.3 or later client
software
installation. Provider is unable to function until these components are
installed.
Source Error:
An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.
Stack Trace:
[OleDbException (0x80004005): Oracle client and networking components were
not found. These components are supplied by Oracle Corporation and are
part
of the Oracle Version 7.3.3 or later client software installation.
Provider is unable to function until these components are installed.]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvider() +57
System.Data.OleDb.OleDbConnection.Open() +203
GT.StudentSearch.Page_Load(Object sender, EventArgs e) +224
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
ASP.NET
Version:1.1.4322.2300
- References:
- Asp.net / iis / oracle problem
- From: BookerW
- Re: Asp.net / iis / oracle problem
- From: Cowboy \(Gregory A. Beamer\)
- Asp.net / iis / oracle problem
- Prev by Date: Re: Redirect with POST ?
- Next by Date: Re: CsvReader or CsvDataReader
- Previous by thread: Re: Asp.net / iis / oracle problem
- Next by thread: Re: Asp.net / iis / oracle problem - never mind , i think i found odp
- Index(es):
Relevant Pages
|