Click here to Skip to main content
13,049,814 members (74,402 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I'm trying to incorporate Sqlite.dll into one of my projects. Works fine on my system... but problem occurs when I port this application to another system. It says

Could not load file or assembly 'System.Data.Sqlite, Version=, Culture=Neutral, PublicKeyToken=db937bc2d44ff139' or one of it's dependencies. An attempt was made to load a program with an incorrect format.

I'm targeting the application to run on .Net 3.5 Platform. Please Help!

Thanks in Advance!

Posted 25-Feb-13 18:01pm
Well, do you have required .NET Framework installed in that machine? Do you have SQlite of appropriate version also installed?
Sunnykumar08 26-Feb-13 0:25am
I'm a novice to SQLite, Is it required to install SQLite on the target machine also, or a DLL reference will do? the Target machine has the latest .Net framework 4.5 installed. But I want the app to target on 3.5 so hat it can run successfully on early legacy systems as well. Please suggest what should I do?
Novice or not, how about just thinking a bit? Reference, essentially, is just a name, usually a strong name. If you fully name, say some version of Microsoft Office, do you think it will run the Word application without installation? :-)
Sunnykumar08 26-Feb-13 0:44am
true, thanks you so much for the help & your time, I really appreciate. I'm sure I'm gonna sort this out... thanks again :)
You are welcome.
I'm almost sure you will sort it out. For a record, I also put a formal answer, please see.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I would suggest that you require the user to have SQLite of appropriate version to be installed as one of the prerequisites for your software product, as well as the compatible .NET Framework version. In my opinion, this is a preferable option for most cases.

However, you can consider to deploy either of them with your application.

For .NET, please see:[^].

For SQLite, you have to study the problem:[^].

Good luck,
Sunnykumar08 26-Feb-13 2:29am
It really helped. Thanks !!
Sergey Alexandrovich Kryukov 26-Feb-13 11:44am
My pleasure.
Good luck, call again.
Sunnykumar08 3-Mar-13 23:54pm
Hello Sir, Can you please help me out with this... I couldn't find any way to PM you hence replying this thread to reach you.
I still couldn't find any solution for this problem... I want to sort the stocks list by Country/Markets Please help.
Sorry, I have no idea of this API. I would only advice that you research the situation deeper and ask actual question (use "Improve question"), not just "can anyone help me?"...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100