Compiled license does not work on other machines

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
pankajsachdeva85
Posts: 5
Joined: Fri 17 Jan 2014 09:43

Compiled license does not work on other machines

Post by pankajsachdeva85 » Mon 03 Feb 2014 12:33

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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Compiled license does not work on other machines

Post by Shalex » Tue 04 Feb 2014 17:37

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.

pankajsachdeva85
Posts: 5
Joined: Fri 17 Jan 2014 09:43

Re: Compiled license does not work on other machines

Post by pankajsachdeva85 » Wed 05 Feb 2014 09:35

Aleksandr:

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

Thank you

Regards,
Pankaj Sachdeva

Post Reply