Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could not create an environment: OCIEnvCreate returned -1.

Status
Not open for further replies.

ralphtrent

Programmer
Jun 2, 2003
958
US
Hi
I am writting a .net application that is connecting to an Oracle database using the System.Data.Oracle client.

I am getting this error when I attempt to connect

Code:
Could not create an environment: OCIEnvCreate returned -1.

I have googled this error and all links lead to permissions but I have granted Authenticated Users Full control of the ora92 folder. I have even copied the OCI.dll to the system32 folder as well as the root folder of my application where my exe lives. I am still getting this error. I also installed the ODA application I downloaded from oracle, all to no avail. There UserName in my machine.config under the ProcessModel element is SYSTEM.

Any help is appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top