I'm learning how to work with Oracle and am using C#/Visual Studio. Just as a reference, I'm following this simple tutorial, and have all the prerequisites done (database installed and ODAC with dev tools installed). The following code that's supposed to create an object for connection to a database throws an exception saying "Object reference not set to an instance of an object." and points to 'conn' when I try to run the program:
OracleConnection conn = new OracleConnection ();
The same thing happens regardless of whether I pass the connection string as a parameter or not. I have the needed Oracle.DataAccess reference set, so I don't know if I could be missing something else?
The database is installed and works, but that shouldn't have to do anything with this problem.