Page 1 of 1

Compiled license does not work on other machines

Posted: Mon 03 Feb 2014 12:33
by pankajsachdeva85
Hi,

I have just bought the license of "dotConnect for SQLite" and I am using the latest version 5.1.9. I am facing a problem with the component licensing.

I have used this http://www.devart.com/dotconnect/sqlite ... nsing.html page to apply the compiled license to the application.

What I found that when I tried to debug the code (or run the executable) with compiled license on other machine where licensed version of "dotConnect for SQLite" is not installed, then any query raises an exception

Code: Select all

"An attempt was made to load a program with an incorrect format."
. When I researched about the exception, I found that the database file is corrupted.

So, please help me figure out what is the issue here. I have created a sample application to show the problem I am facing, unfortunately I cannot attach it here in this thread. So, I am sending the sample to the support email.

Hoping for an early response.

Regards,
Pankaj Sachdeva

Re: Compiled license does not work on other machines

Posted: Tue 04 Feb 2014 17:37
by Shalex
Please open the properties page of your project > Build > Platform target and clear selection of the "Prefer 32-bit" option. Save it and run again. This should fix the problem.

When the option was selected, your assembly was executed in the x86 mode but you copied only the x64 version of sqlite3.dll to the target workstation.

Re: Compiled license does not work on other machines

Posted: Wed 05 Feb 2014 09:35
by pankajsachdeva85
Aleksandr:

That did solve the problem, sorry to bother you for such a silly thing.

Thank you

Regards,
Pankaj Sachdeva