Connection to Oracle works through a console application and doesn't work through a web service
问题 I can't connect to an Oracle schema through a asmx web service instead of I can through a console application [x86]. The code: var conn = new OracleConnection("Data Source=xe;User ID=mySchema;Password=myPass"); The exception: ORA-12154: TNS:could not resolve the connect identifier specified The environment: Windows 7 x64 - VS 2008. Any idea? kindly ask me for any extra information Thanks in advance. 回答1: OCI, the Oracle client layer on which ODP (or the native Oracle client layer) is based