I have a local console app that connects to an Oracle 11 database to execute a simple Select * from View query. It runs fine in localhost, with any of the following connection strings
(FYI the host isn't really 1.2.3.4 :) )
value="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=1.2.3.4)(PORT=1601))(CONNECT_DATA=(SERVICE_NAME=UAT1)))"
value="1.2.3.4:1601/UAT1"
value="myTNSentry"
This value is used in as follows
OracleConnection conn = new OracleConnection();
conn.ConnectionString = "User Id=myUserId;Password=myUserPassword;Data Source="+value+ ";";
conn.Open();
When I publish this to a server & run the setup.exe, conn.Open(); fails with the Ora-12154 error.
Any suggestions gratefully received