I'm trying to use ASP.Net to connect to an Oracle database I get the
following error. I added the
Unable to load DLL (oci.dll).
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.DllNotFoundException: Unable to load DLL
(oci.dll).
Source Error:
Line 29: DataSet dataset=new DataSet();Line
30: adapter.SelectCommand = new OracleCommand(query, conn);
Line 31: adapter.Fill(dataset);
Line 32:
Line 33: DataGrid1.DataSource=dataset.Tables["Test"].DefaultView;
I have two versions of the System.Data.OracleClient in Visual Studio when I
go to add refrence versions 1.0.5000.0 and 1.0.3300.0 . The error above is
using the 1.0.3300.0 version. When I switch to the newer version I get this
error:
System.Data.OracleClient requires Oracle client software version 8.1.7 or
greater.
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.Exception: System.Data.OracleClient requires
Oracle client software version 8.1.7 or greater.
Source Error:
Line 29: DataSet dataset=new DataSet();Line
30: adapter.SelectCommand = new OracleCommand(query, conn);
Line 31: adapter.Fill(dataset);
Line 32:
Line 33: DataGrid1.DataSource=dataset.Tables["Test"].DefaultView;
I downloaded the Oracle client version 10i from the Oracle website. How do I
set the environment path for my application? Any help would be greatly
appreciated.