So i am trying to use SQLite in c# but i seem to get some error i literally dont understand
What i have done so far : downloaded the package provided on http://ift.tt/1bjYMJ4
I downloaded the one with the mixed-mode for windows 64, 4.0 .NET framework. I got it installed in C:\Program files under system.data.SQLite. I made a new project in visual studio, added a reference to System.Data.SQLite.dll and wrote Using system.data.sqlite
After i create a new instance of SQLiteconnection like this:
SQLiteConnection conn = new SQLiteConnection("data source = C:\\Users\\chr\\Desktop\\test.db; version=3");
I get the following error:
An unhandled exception of type 'System.BadImageFormatException' occurred in WindowsFormsApplication4.exe
Additional information: Could not load file or assembly 'System.Data.SQLite, Version=1.0.98.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Aucun commentaire:
Enregistrer un commentaire