VWD -Express, licensing

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
mysqlfred
Posts: 5
Joined: Mon 10 Apr 2006 10:26

VWD -Express, licensing

Post by mysqlfred » Mon 10 Apr 2006 10:33

:cry: Hi!
I'm for the moment running VWD express (Studio 2005 ordered) and I've recently purchased the MySQLDirect.net data provider.

I can't get rid of the message:
"License not found. Please view "Licensing" topic in MySQLDirect .NET documentation for details or contact Core Lab technical support. " on my local developing server.

Do I have to add something in the web.config file?
<add assembly="CoreLab.MySql, Version=3.20.9.0, Culture=neutral,...
is already added.

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Tue 11 Apr 2006 06:42

Do you have App_Licenses.dll assembly in the Bin directory of your site? If not please get it placed there:
1. Create a file named licenses.licx, if this file does not exists yet.
2. Open the file with a text editor and place this line inside:
CoreLab.MySql.MySqlConnection, CoreLab.MySql
3. Save the file and add it to your project.
4. Make sure it is embedded as a resource.
5. Execute "Build Runtime Licenses" command in the licenses.licx file context menu in the Solution Explorer view.
You are done.

mysqlfred
Posts: 5
Joined: Mon 10 Apr 2006 10:26

Post by mysqlfred » Tue 11 Apr 2006 15:03

Do you have App_Licenses.dll assembly in the Bin directory of your site? If not please get it placed there:
OK...but where can i find it?
It's not visible in Corelab dir or in my Website dir...

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Tue 11 Apr 2006 15:18

You can find it in the Bin directory of your site.
If you can not find it there please perform the steps 1-5 from our previous post.

mysqlfred
Posts: 5
Joined: Mon 10 Apr 2006 10:26

Post by mysqlfred » Tue 11 Apr 2006 22:33

5. Execute "Build Runtime Licenses" command in the licenses.licx file context menu in the Solution Explorer view.
This option is not available in VWD-express....Is it?

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Thu 13 Apr 2006 08:30

App_Licenses.dll has been sent to your e-mail address.

Cody21
Posts: 112
Joined: Thu 01 Mar 2007 00:58

Post by Cody21 » Mon 05 Mar 2007 23:53

I have tried this entire procedure and also cannot get an appl_license.dll created. I am using VWD 2005 .. like this customer. Please email me the file.


Alexey wrote:Do you have App_Licenses.dll assembly in the Bin directory of your site? If not please get it placed there:
1. Create a file named licenses.licx, if this file does not exists yet.
2. Open the file with a text editor and place this line inside:
CoreLab.MySql.MySqlConnection, CoreLab.MySql
3. Save the file and add it to your project.
4. Make sure it is embedded as a resource.
5. Execute "Build Runtime Licenses" command in the licenses.licx file context menu in the Solution Explorer view.
You are done.

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Tue 06 Mar 2007 09:06

We ought to have same application name for App_licenses.dll to work properly. Try to compile license using the following command:

Code: Select all

"%Compiler Path%\lc.exe" /target:App_Licenses.dll /complist:licenses.licx /i:"%Assembly Path%\CoreLab.MySql.dll"

Cody21
Posts: 112
Joined: Thu 01 Mar 2007 00:58

Post by Cody21 » Tue 06 Mar 2007 15:33

Alexey wrote:We ought to have same application name for App_licenses.dll to work properly. Try to compile license using the following command:

Code: Select all

"%Compiler Path%\lc.exe" /target:App_Licenses.dll /complist:licenses.licx /i:"%Assembly Path%\CoreLab.MySql.dll"
That WORKED... I now have the App-licenses.dll file ...

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 07 Mar 2007 07:17

Has this solved the licensing problem completely?

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 07 Mar 2007 11:35

If the problem persists, please send me your App_Licenses.dll file.

Cody21
Posts: 112
Joined: Thu 01 Mar 2007 00:58

Post by Cody21 » Wed 07 Mar 2007 15:11

Alexey wrote:If the problem persists, please send me your App_Licenses.dll file.
emailed it to you at 7:10 Am PST

Cody21
Posts: 112
Joined: Thu 01 Mar 2007 00:58

Post by Cody21 » Wed 07 Mar 2007 16:10

Alexey - I want to make sure you're clear on what I have in my /bin directory:

app_licenses.dll.licenses
(note: it has the extension of ".licenses" on the end..)
Corelab.data.dll
Corelab.mysql.dll
Corelab.mysql.web.dll
licenses.licx


* that's it *

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Thu 08 Mar 2007 13:49

There should not be any .licenses suffix. I thought you succeded with creating App_Licenses.dll file. How "app_licenses.dll.licenses" file was created?

Cody21
Posts: 112
Joined: Thu 01 Mar 2007 00:58

Post by Cody21 » Thu 08 Mar 2007 15:12

ugh ... OK, well I *thought* I had since the command actually worked and it generated a License file. All I did was execute the command as you asked me to. I ran it in the SDK\2.0 JDK /bin directory and it created the file with a .licenses appended - see output at the bottom.. here;s the command I entered:

lc.exe /target:App_Licenses.dll /complist:"C:\Documents and Settings\Tim\My Documents\My Web Sites\City Swing\Bin\licenses.licx" /i:"C:\Program Files\CoreLab\MySQLDirect.NET2\CoreLab.MySql.dll" /v

so, I have no idea why the .licences is getting appended. But I *do* know that it doesn't work if I try to rename it - removing the .licenses from the extension.

What am I doing wrong? Oh, and here is the output of the lc.exe command ... to save time..

Microsoft (R) .NET License Compiler
[Microsoft .Net Framework, Version 2.0.50727.42]
Copyright (c) Microsoft Corporation. All rights reserved.


Processing complist 'C:\Documents and Settings\Tim\My Documents\My Web Sites\City Swing\Bin\licenses.licx'...

C:\Documents and Settings\Tim\My Documents\My Web Sites\City Swing\Bin\licenses.
licx (1) : info LC0001 : Processing component entry 'CoreLab.MySql.MySqlConnection, CoreLab.MySql'
C:\Documents and Settings\Tim\My Documents\My Web Sites\City Swing\Bin\licenses.
licx (1) : info LC0002 : Resolved entry to 'CoreLab.MySql.MySqlConnection, CoreL
ab.MySql, Version=3.55.20.0, Culture=neutral, PublicKeyToken=09af7300eec23701'
Creating Licenses file app_licenses.dll.licenses...

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0>dir app*
Volume in drive C has no label.
Volume Serial Number is 090E-3069

Directory of C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0

03/08/2007 07:05 AM 830 app_licenses.dll.licenses
1 File(s) 830 bytes

Post Reply