I have:
- Win 7 (64)
- VS 2010
- Oracle Client 11g (32 - client_1 | 64 - client_2)
- ODP.NET (32 - c:\oracle\ | 64 - c:\oracle64)
I have old project C# with added Oracle.DataAccess.dll (v2) in project references.
In Win PATH I have only C:\Oracle11g\product\11.2.0\client_2\bin; (64)
If I do start the application in any mode get ORA-Error
Oracle.DataAccess.Client.OracleException ORA-12154: TNS:could not resolve the connect identifier specified
In app.config
<connectionStrings>
<add name="ConnectionStringTEST" connectionString="DATA SOURCE=TEST;PASSWORD=TEST;PERSIST SECURITY INFO=True;USER ID=TEST"
providerName="Oracle.DataAccess.Client" />
</connectionStrings>
How do I know what TNSNAMES library uses Oracle.DataAccess.dll in C# app?
I have in REGEDIT set all ORACLE_HOME (etc.) correctly.
I thought that using tns_names which is in the directory that is listed in the PATH system, but I found that it uses tns_names of ODP.net I install certain into c:\oracle\ (32), WHY ? ()
I do not know why it not use standard Oracle client which refers in system PATH.
On the other computers where it is installed, only one oracle client (32), compiled application runs without problems(errors).