Reputation: 762
Although there's an answer to this question here the circumstances are different however. For instance, in one application System.Data.SQLite works perfectly while in this one keeps on throwing this exception on the following line:
SQLiteSync.SqliteClientSyncProvider clientSyncProvider = new SQLiteSync.SqliteClientSyncProvider(connString);
and I did check the path too, to avoid I/O exceptions. Any clues on might throw this ?
Upvotes: 1
Views: 7166
Reputation: 251242
The most common reason I know for this is that SQLite comes in x86 version only and people run it up on x64 bit machines and it doesn't like it.
You can solve this problem (if that's what you have) by changing your build settings from "Any CPU" to "x86". This would explain why it works in one application and not another - if one was running in x86 fine and one was running in x64 and causing this error.
Upvotes: 7