Hi,
I am also getting the same PInvoke errors on a HP device running WindowsCE 5.0, using build 1.0.48.0
As with the OP, I used the precompiled dll from installed by SQLite-1.0.48.0-setup.exe at C:\Program Files\SQLite.NET\bin\CompacFramework\System.Data.SQLite.DLL and got the same error. (The size of this file is 497Kb).
So I built the source code as above, and have used the dll you mentioned from SQLite-1.0.48.0-source\bin\CompactFramework, and still got the same error (file size is also 497Kb).
In my application, the stack trace is as follows:
APPLICATION ERROR AT 26/02/2008 11:21:28 PM: Unhandled Exception:
Can't find PInvoke DLL 'System.Data.SQLite.DLL'.
System.MissingMethodException
Stack Trace
at System.Data.SQLite.SQLite3.Open()
at System.Data.SQLite.SQLiteConnection.Open()
Also, I tried running testce.exe on my HP CE 5.0 device, and get the same error:
Error
TESTCE.EXE
MissingMethodException
Can't find PInvoke DLL 'System.Data.SQLite.DLL'.
at System.Data.SQLite.SQLite3.Open()
at System.Data.SQLite.SQLiteConnection.Open()
at test.Program.Main()
Any ideas?