J
John
Hello,
I am developing a .Net (version 1.1) application in C# for which I need
to connect remotely to an Oracle database server. To accomplish this I
am using the .NET Framework Data Provider for Oracle
(System.Data.OracleClient.dll). However, this application will be
distributed to multiple clients so I do not want to require that they
install OracleClient itself.
Currently the application is throwing the following exception when
attempting to connect to the remote database:
System.Data.OracleClient.OracleException: ORA-12154: TNS:could not
resolve service name
The data provider is apparently attempting to find the tnsnames.ora
file to resolve the service details, however this file does not exist
as OracleClient is not installed. The application works fine when
OracleClient is installed, but as stated, I do not want this to be a
requirement.
How can I connect remotely to the Oracle database server in the .Net
framework without installing the OracleClient?
Thanks in advance for any help.
John Fleming
(e-mail address removed)
I am developing a .Net (version 1.1) application in C# for which I need
to connect remotely to an Oracle database server. To accomplish this I
am using the .NET Framework Data Provider for Oracle
(System.Data.OracleClient.dll). However, this application will be
distributed to multiple clients so I do not want to require that they
install OracleClient itself.
Currently the application is throwing the following exception when
attempting to connect to the remote database:
System.Data.OracleClient.OracleException: ORA-12154: TNS:could not
resolve service name
The data provider is apparently attempting to find the tnsnames.ora
file to resolve the service details, however this file does not exist
as OracleClient is not installed. The application works fine when
OracleClient is installed, but as stated, I do not want this to be a
requirement.
How can I connect remotely to the Oracle database server in the .Net
framework without installing the OracleClient?
Thanks in advance for any help.
John Fleming
(e-mail address removed)