Distribution licensing issue: assembly that contains embedded license cannot be used with application
Posted: Mon 13 Jun 2016 14:15
We're getting an OracleException with the following message whenever we run our software on a non-development system:
Our library contains a licenses.licx file with the following content - the build action is set to Embedded Resource (we're using Visual Studio 2015):
That should be all that's required, and I can verify that the license code is indeed embedded into our library, but for some reason the licenses.config information is not taken into account.
I removed and reinstalled dotConnect, made sure that the Devart.Data.dll and Devart.Data.Oracle.dll versions match those that are in the GAC, I tried with and without the version number in licenses.licx, I tried adding these references to the main executable project (together with a licenses.licx file), I tried with and without .exe extension in the licenses.config file, and so on, but nothing so far has resolved the problem.
What could cause this problem - and more importantly, how can this be fixed?
I followed the instructions at https://www.devart.com/dotconnect/db2/d ... nsing.html.Assembly that contains embedded dotConnect for Oracle license cannot be used with this application: <applicationname>
Please correct license information.
Our library contains a licenses.licx file with the following content - the build action is set to Embedded Resource (we're using Visual Studio 2015):
There's also a licenses.config file in the same folder that contains our application name (including .exe extension).Devart.Data.Oracle.OracleConnection, Devart.Data.Oracle, Version=8.4.225
That should be all that's required, and I can verify that the license code is indeed embedded into our library, but for some reason the licenses.config information is not taken into account.
I removed and reinstalled dotConnect, made sure that the Devart.Data.dll and Devart.Data.Oracle.dll versions match those that are in the GAC, I tried with and without the version number in licenses.licx, I tried adding these references to the main executable project (together with a licenses.licx file), I tried with and without .exe extension in the licenses.config file, and so on, but nothing so far has resolved the problem.
What could cause this problem - and more importantly, how can this be fixed?