问题
In my Windows Mobile project, I have added the SQLite.Interop.066.DLL
, set the [Build Action] = [Content] and set the [Copy to Output Directory] = [Copy if newer].
Still, after I open my my connection, I receive the unhandled Missing Method Exception
message "Can't find PInvoke DLL 'SQLite.Interop.DLL" whenever I attempt to execute the reader on the SQLiteCommand
.
What is wrong?


回答1:
Apparently, SQLite
is not being managed very well.
This was a bug someone reported over a year ago (3 May 2010) in the SQLite setup.exe download. To get working DLLs, I had to download the binaries.
I had seen it earlier, but dismissed it because it was so old. Today, I downloaded the binaries and installed them in my project - No errors!
Here is the link for others:
Version 1.0.66.0 - bad build for Compact Framework ?
Note to the SQLite
community: Update your code, please!
来源:https://stackoverflow.com/questions/8067793/sqlite-interop-dll-missing-method-windows-mobile-cf