dotConnect for oracle for VS 2015

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
John Liu
Posts: 61
Joined: Wed 14 Nov 2012 20:58

dotConnect for oracle for VS 2015

Post by John Liu » Mon 14 Mar 2016 17:44

I recently moved from VS2013 to VS2015. My dotConnect for oracle version 8.4.359.0 stops working with error message "License cannot be used with this application, please correct license information". I have the valid license, and everything worked great with VS2013.
What do I need to do to resolve this issue?
thanks
JLIU

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

Re: dotConnect for oracle for VS 2015

Post by Pinturiccio » Tue 15 Mar 2016 09:26

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 with 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 or 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.keys 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

John Liu
Posts: 61
Joined: Wed 14 Nov 2012 20:58

Re: dotConnect for oracle for VS 2015

Post by John Liu » Tue 15 Mar 2016 21:23

I have upgraded to version 8.5.602.0 and everything works fine now. I don't mind to upgrade to the latest version in our current development environment. I don't feel safe to upgrade to the latest version in our already released production environment. I'm wondering if you would allow to install multiple versions on the same machine in the future.
thanks
JLIU

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

Re: dotConnect for oracle for VS 2015

Post by Pinturiccio » Wed 16 Mar 2016 15:45

We will investigate the possibility to install several dotConnect providers of different versions simultaneously. But we can't tell any timeframe at the moment.

You can install different versions of dotConnect for Oracle on the same computer at the same time.

We do not recommend to install several versions of dotConnect for Oracle in the development environment because design time will not work correctly in this situation.

In order to install several dotConnect for Oracle versions to one computer, please perform the following actions:
1) delete the HKEY_LOCAL_MACHINE\SOFTWARE\Devart\Installed Products\dotConnect\Net2\Oracle key for x86 operating system and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Devart\Installed Products\dotConnect\Net2\Oracle key for x64 operating system before each new provider installation;
2) be aware that each dotConnect for Oracle installation package places the policy.*.Devart.* files to GAC. If you use several versions of our provider, you should remove these policy files from your GAC.

Post Reply