I migrated my web application from unmanaged to managed Oracle Data Provider (ODP.NET)
Oracle.DataAccess.dll => Oracle.ManagedDataAccess.dll
As the web application uses the tnsnames.ora
file, and it seems the managed dll is not registry friendly, just changing the dll and renaming the references gave the ORA-12545: Network Transport: Unable to resolve connect hostname
; after reading this answer I put the tnsnames.ora
in the main website directory and the connection were successful.
But if remove the tnsnames from the web application folder and put the environment variable "TNS_ADMIN" at the local path, the connection does not work...
If I remove the "tnsnames.ora" file from the web application folder, add the TNS_ADMIN
environment variable and the path to it (C:\oracle\product\11.2.0\client_1\Network\Admin
), I then open the ProcessMonitor (as suggested in this answer), add a filter Path=>contains=> tnsnames, and reload my local web application, the processmonitor dont't find any activity on this filter, and the connection to oracle fails...
Is there a way to find out, what is the path the Oracle dll is trying to load?