C # Winform Could not load file or assembly "System.Data.SQLite" or one of its dependencies. Trying to load program with an incorrect format

Winform developed using a small software, which was used as a SQLite database

But on my Win7 64-bit systems has given rise to the following error:
System.BadImageFormatException: Could not load file or assembly "System.Data.SQLite, Version = 1.0.66.0, Culture = neutral, PublicKeyToken = db937bc2d44ff139" or one of its dependencies. Trying to load program with an incorrect format.
 
Learned on the network because the components of this 32-bit SQLite, so the 64-bit system compatibility problems
The solution is simple: change in the target platform in the VS project: x86 so that you can run on 64 and 32 of the system
\
 
If a Web project, you can "Enable 32-bit Applications" in IIS is set to true to resolve this problem
 

Guess you like

Origin www.cnblogs.com/soundcode/p/12462806.html