tags:

views:

52

answers:

1

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 ?

+1  A: 

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.

Sohnee
The issue persists even though I did change the settings as you suggested. What strikes me as is that Sqlite works perfectly in another project with the same settings(without even setting the CPU to x86), but not in this case. my guess is that it has something to do with sqlitesync...
bsuv