using v8.3.407 license issue in VS2015

using v8.3.407 license issue in VS2015

Postby emp51302 » Wed 27 Jan 2016 16:25

Hi I have an old license for v8.3.407 working in an ASP.NET web application. It works great in VS2013. I now have VS2015, where in the web app compiles fine, but I am unable to debug in VS2015. It says:

Code: Select all
Assembly is not licensed to use dotConnect for MySQL.
Please correct license information.

Is there a way I can fix the license issue in VS2015 without upgrading to the latest version of dotConnect for MySQL? I tried looking at intructions/example @ but I don't understand how I can fix it in VS2015.

Please advise.
Posts: 46
Joined: Fri 19 Aug 2011 20:57

Re: using v8.3.407 license issue in VS2015

Postby Pinturiccio » Thu 28 Jan 2016 15:46

Visual Studio 2015 passes parameters to lc.exe differently than older Visual Studio versions. Starting with dotConnect for MySQL 8.3.422, we have taken these differences into account and correctly process parameters, passed by Visual Studio 2015.

In order to use Visual Studio 2015 you need dotConnect for MySQL 8.3.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.MySql.MySqlConnection, Devart.Data.MySql

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.MySql.dll"

- %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;
- licenses.licx is your licenses.licx file;
- %Assembly Path% is the Devart.Data.MySql.dll assembly location.

3. The License compiler will generate the 'MyApplication.exe.licenses' resource file;
4. Add this file to your project as an embedded resource and rebuild the project.

For more information about how to compile license resource manually, please refer to
Devart Team
Posts: 1849
Joined: Wed 02 Nov 2011 09:44

Return to dotConnect for MySQL