Asp.net / iis / oracle problem

G

Guest

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
 
C

Cowboy \(Gregory A. Beamer\)

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 said:
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
 
G

Guest

ok, i removed the double concatenating, and i will try it again. Can i
download the odp.net stuff

Cowboy (Gregory A. Beamer) said:
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 said:
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
 
G

Guest

I am downloading the odpnet stuff for oracle 9i ver 9.0201

Cowboy (Gregory A. Beamer) said:
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 said:
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
 
G

Guest

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 said:
I am downloading the odpnet stuff for oracle 9i ver 9.0201

Cowboy (Gregory A. Beamer) said:
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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top