Microsoft
Software
Hardware
Network
Question : System.Data.OleDb.OleDbExc<wbr />eption: Oracle client and networking components were not found.
I have SQLNet installed on my web server.
If drag and drop an OleDbConnection to my page with vs.Net, every think works. Testing connection is successful.
If I create the connection by myself with the following code. I get this error message on cnn.open();
(On separate page that I created with VS.Net)
code:
OleDbConnection cnn = new OleDbConnection("Provider=
MSDAORA.1;
Password=x
x;User ID=xxxx;Data Source=xxxx");
cnn.Open();
error message:
System.Data.OleDb.OleDbExc
eption: 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.
Please advice.
Answer : System.Data.OleDb.OleDbExc<wbr />eption: Oracle client and networking components were not found.
Basically, when you use MSDAORA, it means that you are using MS version. You might consider to use Oracle OLEDB instead since MS version has some issues with the OCI driver somehow. If so, you can use the following connection string. Provider=OraOLEDB.Oracle;U
ser ID=xxx;Password=xxx;Data
Source=xxx; to connect to Oracle. Please download Oracle OLEDB in case you don't have it.
http://otn.oracle.com/soft
ware/tech/
windows/ol
e_db/
conte
nt.html
Or even better, you can use Oracle Data Privider for .NET to provide a better integration between .NET and Oracle at
http://otn.oracle.com/soft
ware/tech/
windows/od
pnet/
conte
nt.html
if you are using Oracle 9i. I guess you're not :P
Please follow this instruction
http://support.microsoft.c
om/default
.aspx?scid
=http://
su
pport.micr
osoft.com:
80/support
/kb/articl
es/Q255/0/
84.asp&
NoW
ebContent=
1
Random Solutions
VBS, SQL, Access, ODBC - Problems with an Insert Statement
PhysicalDrive0 in VBNET
SQL syntax question -- exclude NULL record
Ghost32
The Certification Authority Service has not been started.
Load progress bar C#, asp.net
Print issues in Reporting Services
Access 2007 Database Created on Windows & Does Nothing When Opened on XP
Unchangeable Combo Box
Filter on split form