Hi,
We have a requirement to connect to oracle from ASP.NET and we installed ODAC(ODAC1110621) components on the server but still we are getting the following error while opening the connection. Please find the details below:-
OCIEnvCreate failed with return code -1 but error message text was not available.
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: OCIEnvCreate failed with return code -1 but error message text was not available.
Source Error:
Line 16: {
Line 17: OracleConnection con = new OracleConnection(ConfigurationManager.ConnectionStrings["HRDBA"].ConnectionString);
Line 18: con.Open();
Line 19: Label1.Text = con.State.ToString();
Line 20: con.Close();
|
Source File: \\hs003fs01-02.homebase.com\wfmp\Webpage1.aspx.cs Line: 18
Stack Trace: