ODP.NET ORA-12154 TNS error only when run as service
问题 I am writing a service in VB.NET to continually log data to an Oracle DB using ODP.NET The application was originally written as a basic Windows Forms App and works however when I port it to a service it seems it cannot see the TNS file and the following error message is thrown: Service cannot be started. Oracle.DataAccess.Client.OracleException ORA-12154:TNS:could not resolve the connect identifier specified So when using the following example connectstring "Data Source= example;User Id=