I have 2 projects (WebForms and Windows Services) in .NetFramework 4 that connects to the Oracle database through ObdcConnection.
In the web project I can successfully open the connection ...
However in Windows Services the following error is thrown:
ERROR [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified
In English: ERROR [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified.
In both projects I'm using the following method:
public void testConnectionObdc(string connectionString)
{
OdbcConnection conn = new OdbcConnection(connectionString);
conn.Open();
}