My managed ODP.net webapp works locally, but when deployed to a server it does not work with an error:
"TNS: the listener is currently unaware of the requested service in the connection descriptor
From looking around, it seems that this is because it cannot get into the tnsnames.ora file.
I tried the following without success:
- Placing the tnsnames.ora file (the same one that works locally) in the [oracle home] [product] ... \ network \ admin folder.
- Configure the TNS_ADMIN parameter in the web.config section of the ODP managed port that points to an environment variable.
- Configure the TNS_ADMIN parameter in the web.config section of the ODP managed port that points directly to the tnsnames.ora file.
On the server, an attempt to start tnsping gives a TNS-03502 error: message 3502 was not found; No message file for product = NETWORK, object = TNS
What am I missing?
source
share