Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Sqlite
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=1.0.66.0, 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!
 
Sunny
Posted 25-Feb-13 19:01pm
Comments
Sergey Alexandrovich Kryukov at 26-Feb-13 0:13am
   
Well, do you have required .NET Framework installed in that machine? Do you have SQlite of appropriate version also installed?
—SA
Sunnykumar08 at 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?
Sergey Alexandrovich Kryukov at 26-Feb-13 0:31am
   
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? :-)
—SA
Sunnykumar08 at 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 :)
Sergey Alexandrovich Kryukov at 26-Feb-13 1:00am
   
You are welcome.
I'm almost sure you will sort it out. For a record, I also put a formal answer, please see.
—SA

1 solution

Rate this: bad
good
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: http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.90%29.aspx[^].
 
For SQLite, you have to study the problem: http://bit.ly/WnY14r[^].
 
Good luck,
—SA
  Permalink  
Comments
Sunnykumar08 at 26-Feb-13 2:29am
   
It really helped. Thanks !!
Sergey Alexandrovich Kryukov at 26-Feb-13 11:44am
   
My pleasure.
Good luck, call again.
—SA
Sunnykumar08 at 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.
 
http://www.codeproject.com/Questions/530048/GetplusAllplusStockplusSymbolsplusStock-Market-Wis
I still couldn't find any solution for this problem... I want to sort the stocks list by Country/Markets Please help.
Sergey Alexandrovich Kryukov at 4-Mar-13 2:06am
   
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?"...
—SA

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

  Print Answers RSS
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2014
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