License not valid.

License not valid.

Postby pnikoletich » Wed 11 Oct 2006 04:52

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.
pnikoletich
 
Posts: 5
Joined: Wed 11 Oct 2006 04:49

Postby pnikoletich » Wed 11 Oct 2006 05:18

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.
pnikoletich
 
Posts: 5
Joined: Wed 11 Oct 2006 04:49

Postby Alexey » Wed 11 Oct 2006 06:15

Have you placed CoreLab.MySql.dll on the production server?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby pnikoletich » Wed 11 Oct 2006 16:59

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?
pnikoletich
 
Posts: 5
Joined: Wed 11 Oct 2006 04:49

Postby Alexey » Thu 12 Oct 2006 10:38

What version of VS do you have?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby pnikoletich » Thu 12 Oct 2006 15:24

I am running VS 2005 Professional
pnikoletich
 
Posts: 5
Joined: Wed 11 Oct 2006 04:49

Postby Alexey » Thu 12 Oct 2006 15:36

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.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby pnikoletich » Fri 13 Oct 2006 03:46

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.
pnikoletich
 
Posts: 5
Joined: Wed 11 Oct 2006 04:49

Postby Alexey » Fri 13 Oct 2006 06:12

You are welcome.
Thanks for your appreciation.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for MySQL