473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Asp.net/vb and Oracle

Hopefully, I frame this problem/question correctly.

I have some code written/updated in visual studio 2003. This code when
setup on other machines where I have installed the Oracle 9i client, and the
Oracle 9.0 odbc drivers will connect to my oracle database when debugging. I
ported the SAME code onto a new machine, installed visual studio 2003,
installed IIS, installed the .net frameworks 1 thru 3, but when I am going
through the code and it attempts to open a connection to the database, I get
the following error:

Server Error in '/dev' 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:
Line 366: Shared Function OpenDatabase(ByVal gsConnectionString As
String) As OleDbConnection
Line 367: Dim cn As New OleDbConnection(gsConnectionString)
Line 368: cn.Open()
Line 369: Return cn
Line 370: End Function
Source File: C:\Inetpub\wwwroot\Dev\Global.asax.vb Line: 368

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)
System.Data.OleDb.OleDbConnection.InitializeProvid er()
System.Data.OleDb.OleDbConnection.Open()
GT.Global.OpenDatabase(String gsConnectionString) in
C:\Inetpub\wwwroot\Dev\Global.asax.vb:368
GT.StudentSearch.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\Dev\StudentSearch.aspx.vb:31
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

************************************************** *********

A snippet of the code that makes the connection is a s follows

gsConnectionString = OLEDB_PROVIDER & "User ID=gtmsm;Password=" &
DB_DEV_ADMIN_PASSWORD & ";Data Source=mdevl.domain.com"

where OLEDB_PROVIDER =

Public Const OLEDB_PROVIDER As String = "Provider=MSDAORA.1;"

Dim cn As OleDbConnection = OpenDatabase(gsConnectionString)
Shared Function OpenDatabase(ByVal gsConnectionString As String) As
OleDbConnection
Dim cn As New OleDbConnection(gsConnectionString)
cn.Open()
Return cn
End Function
Oracle Pl/SQL connects just fine. The odbc connections to mdevl are working
just fine

What gives
Jul 10 '07 #1
1 2745
Let me add, I have tried the suggestions in the following kb article

http://support.microsoft.com/kb/193225/EN-US/
Ah ha, actually at "runtime" I think I figured it out. I installed the
Oracle Provider for OLE DB components, as well as the orcle Data Provider for
..net and one of those seemed to do the trick

"booker@mgt" wrote:
Hopefully, I frame this problem/question correctly.

I have some code written/updated in visual studio 2003. This code when
setup on other machines where I have installed the Oracle 9i client, and the
Oracle 9.0 odbc drivers will connect to my oracle database when debugging. I
ported the SAME code onto a new machine, installed visual studio 2003,
installed IIS, installed the .net frameworks 1 thru 3, but when I am going
through the code and it attempts to open a connection to the database, I get
the following error:

Server Error in '/dev' 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:
Line 366: Shared Function OpenDatabase(ByVal gsConnectionString As
String) As OleDbConnection
Line 367: Dim cn As New OleDbConnection(gsConnectionString)
Line 368: cn.Open()
Line 369: Return cn
Line 370: End Function
Source File: C:\Inetpub\wwwroot\Dev\Global.asax.vb Line: 368

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)
System.Data.OleDb.OleDbConnection.InitializeProvid er()
System.Data.OleDb.OleDbConnection.Open()
GT.Global.OpenDatabase(String gsConnectionString) in
C:\Inetpub\wwwroot\Dev\Global.asax.vb:368
GT.StudentSearch.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\Dev\StudentSearch.aspx.vb:31
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

************************************************** *********

A snippet of the code that makes the connection is a s follows

gsConnectionString = OLEDB_PROVIDER & "User ID=gtmsm;Password=" &
DB_DEV_ADMIN_PASSWORD & ";Data Source=mdevl.domain.com"

where OLEDB_PROVIDER =

Public Const OLEDB_PROVIDER As String = "Provider=MSDAORA.1;"

Dim cn As OleDbConnection = OpenDatabase(gsConnectionString)
Shared Function OpenDatabase(ByVal gsConnectionString As String) As
OleDbConnection
Dim cn As New OleDbConnection(gsConnectionString)
cn.Open()
Return cn
End Function
Oracle Pl/SQL connects just fine. The odbc connections to mdevl are working
just fine

What gives
Jul 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jan Bols | last post by:
I've been trying to install Oracle 8.1.7 on a fresh Mandrake 9.1 O.S for days, but I'm still not able to get it running. I've tried several install instructions that I found on the internet but no...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
63
by: Nick Palmer | last post by:
Hi all, Is there a DB2 equivilant to Oracle's DB Link functionality ? I have two DB2 databases and I need to get access to the tables in one from the other. In Oracle I would just create a DB...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
13
by: Chris Botha | last post by:
The machine is running XP Pro with all the latest service packs, etc. I must access an Oracle database so I installed the Oracle client stuff. I can query Oracle from a Windows app, no problem....
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
2
by: Ruslan A Dautkhanov | last post by:
Hello ! I'm about to install O9i on FreeBSD box. uname -a: FreeBSD stat2.scn.ru 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #2: Fri Apr 23 19:19:43 KRAST 2004...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: sathyguy | last post by:
when i type the below in my RHEL AS 4's Firefox 1.5 http://appsworld.ncc.com:7777/forms/...&form=test.fmx iam getting the below error... The requested URL /forms/frmservlet was not found on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.