Page 1 of 2

VWD -Express, licensing

Posted: Mon 10 Apr 2006 10:33
by mysqlfred
: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.

Posted: Tue 11 Apr 2006 06:42
by Alexey
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.

Posted: Tue 11 Apr 2006 15:03
by mysqlfred
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...

Posted: Tue 11 Apr 2006 15:18
by Alexey
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.

Posted: Tue 11 Apr 2006 22:33
by mysqlfred
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?

Posted: Thu 13 Apr 2006 08:30
by Alexey
App_Licenses.dll has been sent to your e-mail address.

Posted: Mon 05 Mar 2007 23:53
by Cody21
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.

Posted: Tue 06 Mar 2007 09:06
by Alexey
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"

Posted: Tue 06 Mar 2007 15:33
by Cody21
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 ...

Posted: Wed 07 Mar 2007 07:17
by Alexey
Has this solved the licensing problem completely?

Posted: Wed 07 Mar 2007 11:35
by Alexey
If the problem persists, please send me your App_Licenses.dll file.

Posted: Wed 07 Mar 2007 15:11
by Cody21
Alexey wrote:If the problem persists, please send me your App_Licenses.dll file.
emailed it to you at 7:10 Am PST

Posted: Wed 07 Mar 2007 16:10
by Cody21
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 *

Posted: Thu 08 Mar 2007 13:49
by Alexey
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?

Posted: Thu 08 Mar 2007 15:12
by Cody21
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