By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

Asp.net / iis / oracle problem

P: n/a
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(I nt32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvid er() +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
Feb 4 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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" <Bo*****@discussions.microsoft.com> wrote in message
news:75**********************************@microsof t.com...
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(I nt32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvid er() +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

Feb 5 '06 #2

P: n/a

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" <Bo*****@discussions.microsoft.com> wrote in message
news:75**********************************@microsof t.com...
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(I nt32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvid er() +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


Feb 7 '06 #3

P: n/a
I am downloading the odpnet stuff for oracle 9i ver 9.0201

"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" <Bo*****@discussions.microsoft.com> wrote in message
news:75**********************************@microsof t.com...
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(I nt32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvid er() +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


Feb 7 '06 #4

P: n/a
Final solution that seemed to work:

Ok, the quick rundown

Fixed the ldap references In the code

Replaced the username and passwords for accounts in our domain (Remember
this code came from a separate company)

Installed Oracle Client software on Server

Installed Oracle OLE DB connectivity software (ODAC) from Oracle’s website.
This seemed to resolve the error I got in regards to the Oracle Client not
being found

Finally, the account used to access the database did not have the right to
view specific tables. It could see the list of tables, but not specific
tables.

My DBA had to create synonyms for the account used to access the database to
mimic the account that had ownership of the tables in the database.

At this point, I can now connect, perform queries on the tables, etc ,etc..

Wallah, thanks for the journey,

Thanks for all of your help

"BookerW" wrote:
I am downloading the odpnet stuff for oracle 9i ver 9.0201

"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" <Bo*****@discussions.microsoft.com> wrote in message
news:75**********************************@microsof t.com...
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(I nt32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvid er() +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


Feb 9 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.