Robin Rodricks
Robin Rodricks

Reputation: 113976

Cannot load SQLite DLL on Windows 7 32bit PC

I've currently used the System.Data.SQLite DLL in a .NET 4.0 x86 WinForms app. This is causing an issue on one of my client's PCs although I cannot reproduce this bug on my system. Both systems are 32bit Windows 7. How do I solve this? Things I've tried:

The error looks wierd because my app is obfuscated. The app works on my 32-bit PC and on my 64-bit development PC. It fails on a client machine. What can I do to solve this error?

enter image description here

Upvotes: 0

Views: 65

Answers (2)

Robin Rodricks
Robin Rodricks

Reputation: 113976

Turns out my SQLite DLL was outdated. I downloaded the latest from here and rebuilt my app with it. It worked on my PC as well as the client's. I had to install VC++ Runtime 2005 x32 on the Client Machine as well.

Upvotes: 0

Mostafiz
Mostafiz

Reputation: 7352

In your project, solution explorer expands the Reference section and right click System.Data.SQLite then open properties, in the properties window, make sure copy local is set true . After that rebuild your project and run your client machine again

Upvotes: 1

Related Questions