Page 1 of 1

License not valid.

Posted: Wed 11 Oct 2006 04:52
by pnikoletich
I recently purchased the CoreLab MySQL.NET DB Provider and have been getting a license not valid exception when moving files over to my production server. I have followed all the steps for compiling a App_Licenses.dll but haven't been able to get it to work.

I tried building the dll in Visual Studio 2005 but no Build Runtime Licenses so i downloaded Visual Web Developer, added the licenses.licx into the project and was able to run the build runtime licenses. I have tried the following two setups in the licenses.licx file.

1. CoreLab.MySql.MySqlConnection, CoreLab.MySql
2. CoreLab.MySql.MySqlConnection, CoreLab.MySql, Version=3.50.12.0, Culture=neutral, PublicKeyToken=09af7300eec23701

Neither have worked. Please help.

Posted: Wed 11 Oct 2006 05:18
by pnikoletich
I uninstalled corelab, installed Visual Studio Web Developer on production server, reinstalled corelab, ran website within VS Web Developer and instantly the site came up with correctly licensed for outside play.

Might help others with similar problem.

Posted: Wed 11 Oct 2006 06:15
by Alexey
Have you placed CoreLab.MySql.dll on the production server?

Posted: Wed 11 Oct 2006 16:59
by pnikoletich
Yes, I had tried that also with no success. I curious as to why it started working after I did the above. Any suggestions on a better way to do this for future use or have others found this process to work for them too?

Posted: Thu 12 Oct 2006 10:38
by Alexey
What version of VS do you have?

Posted: Thu 12 Oct 2006 15:24
by pnikoletich
I am running VS 2005 Professional

Posted: Thu 12 Oct 2006 15:36
by Alexey
We can't reproduce the problem you reported.
There are two ways to deploy ASP.NET application to server.
First, you can compile the application entirely, so that web server does not perform any compilation on demand. In this case licensing web applications is same as licensing common WinForms application.
The other way is to upload source files to server, where they are compiled on user request. In this case you have to have special assembly App_Licenses.dll in the Bin directory of your site.

Posted: Fri 13 Oct 2006 03:46
by pnikoletich
I was able to compile the App_Licenses.dll but received the same error (I tried this right before I downloaded VS Web Developer and it worked). From now on I will just try compiling the site before deployment.

Thank you for your help. You have excellent and prompt service over at CoreLab.

Posted: Fri 13 Oct 2006 06:12
by Alexey
You are welcome.
Thanks for your appreciation.