Licensing problem..

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
VicSup
Posts: 1
Joined: Thu 02 Nov 2017 14:16

Licensing problem..

Post by VicSup » Thu 02 Nov 2017 14:54

Hi,

We have an application that has run for 3 years, and recently needed some bug fixing. We adapted the application and noticed dotconnect was throwing errors about licensing. At that point we installed dotconnect, the same version that is used in the project (7.8), recompiled and now we're getting the following error: DataPortal.Fetch failed (Assembly (PIP.Web) is not licensed to use dotConnect for Oracle. Please correct license information.). Besides installing the version of dotconnect that is referenced in the application, do we need to configure anything about dotconnect? Nothing actually using dotconnect has been modified, and the license.licx is still in place.

I cannot actually find anything that references this error, except for creating the license.licx and some other file referencing some exe's. We are using this in a MVC web application.

In advance, Thanks for your help

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Licensing problem..

Post by Pinturiccio » Fri 03 Nov 2017 06:57

Probably you have started using Visual Studio 2015. This error occurs when a version of dotConnect for Oracle that does not support Visual Studio 2015 is used in Visual Studio 2015.

Visual Studio 2015 passes parameters to lc.exe differently than older Visual Studio versions. We have supported Visual Studio 2015 Release Candidate in dotConnect for Oracle 8.4.422. Starting from this version, we have taken these differences into account and correctly process parameters, passed by Visual Studio 2015. For more information, please refer to https://www.devart.com/dotconnect/oracl ... story.html

With Visual Studio 2015, you need to use dotConnect for Oracle 8.4.422 or higher. However, you can use Visual Studio 2015 even with dotConnect for Oracle of a version older than 8.4.422. In this case you have to compile license resources manually.

The license resource can be compiled in the following way:
1) Create a text file named licenses.licx and enter the following text inside the licenses.licx file:
Devart.Data.Oracle.OracleConnection, Devart.Data.Oracle

2) Generate the license resource file using the following command line:
"%Compiler Path%\lc.exe /target:MyApplication.exe /complist:licenses.licx /i:"%Assembly Path%\Devart.Data.Oracle.dll"
Where:

- %Compiler Path% is the path to the appropriate lc.exe file (for example, C:\Program Files\Microsoft.NET\SDK\v2.0\Bin);
- MyApplication.exe is the name of your target executable file. If you want to compile a license resource for a class library project, specify MyApplication.dll instead of MyApplication.exe, where MyApplication.dll is the name of the class library.
- licenses.licx is your licenses.licx file. Place licenses.config file in the same folder as the licenses.licx file for a class library project;
- %Assembly Path% is the Devart.Data.Oracle.dll assembly location.

3) The License compiler will generate the 'MyApplication.exe.licenses' ('MyApplication.dll.licenses' for class library project) resource file;

4) Add this file to your project as an embedded resource.

For more information, please refer to https://www.devart.com/dotconnect/oracl ... ml#compile

Post Reply