I am trying to develop a C # application for Windows Forms that focuses on the .net 4 infrastructure. The program will execute the stored procedure against the Oracle database and I will get the following error when trying to open a connection to the database.
ORA-12557 TNS: protocol adapter not loading
I am developing this in Visual Studio 2012 and managed to make Server Explorer connect to the database successfully, however I continue to receive this error through my application.
I have two Oracle 11g clients on my machine. One of them is 32 bits, and the other is 64 bits. I need both for different applications, so they cannot be deleted. I also tried changing the order of the original Oracle directories in the PATH variable. I currently have a 64-bit first that I would like to connect to.
I connect my application to the database using ODP.NET and refer to the DLL from the 64-bit application.
As far as I can tell, I did what was suggested, and I was not able to get it to work. If anyone can help, this will be appreciated.
James randles
source share