System.BadImageFormatException with Sqlite

I am trying to use SQLite with my WPF application. I can read and write to work fine. The only problem I encountered is that my xaml is not showing and I get the following error:

System.BadImageFormatException Failed to load the file or assembly "System.Data.SQLite, Version = 1.0.80.0, Culture = neutral, PublicKeyToken = db937bc2d44ff139" or one of its dependencies. An attempt was made to download a program with the wrong format.

My questions are: -How do I know which version of SQLite I am using? 32bit or 64bit? -I tried to change the platform target to x86 and x64, but none of them helped. How can I solve this error?

+3
source share
2 answers

64- . 32- ( SQLite, ).

+2

System.BadImageFormatException , 64- 32- . Visual Studio 32- , Design 64- . Visual Studio . . "" .

0

All Articles