I, too, have run into the same problem.
My scenario is as follows:
- Win 2008
- Oracle 11g
- IIS 7.0, configured to manage .svc-styled web services
Oracle connectivity has been tested through a standard ODP client - successfully.
tnsping shows the tnsnames.ora is properly constructed, and that it is reachable through ORACLE_HOME. SERVICE_NAME (not SID) is used in the CONNECT_DATA section.
Permissions on ORACLE_HOME has been granted to Network Service.
My Web Service method gets the 12154 error and I am at a loss as to why. I can debug into the service method and the connection.Open() method throws an exception when the connection string is identical to the one that was used in the simple database client.
I have seen this same code work in IIS 6. As IIS 7 does not use the same configuration commands as IIS 6, I am wondering if my flavor of this dilemma could be attributable to IIS 7 config.
Any insights into the problem would be welcomed.
Thanks