My project references CoreLab.Oracle.dll and have corresponding license.licx file. When I create OracleConnection with new(), connection can be opened problemless.
However, another assembly which is used in my project, accesses database in generic way, like this:
How do I make this invalid Licensing exception go away?DbProviderFactory factory = DbProviderFactories.GetFactory("CoreLab.Oracle");
IDbConnection result = factory.CreateConnection();
conn.ConnectionString = ConnectionString;
conn.Open(); <-- Here I get an exception about Licensing...