[Solved] C# connect SQLite error: {“trying to load a program with incorrect format. (exception from HResult: 0x8007000b)”}

1. Errors are reported as follows:

2. Reason: because the two imported DLL files are written in C + +, the target platform needs to be selected. If it is any CPU, it will choose whether to compile to x64 or x86 (32-bit) according to your configuration

3. Solution: right-click Project Properties generate

Similar Posts: