0

I have developed an application in WPF C# using .Net Framework 4.0 which uses Sqlite database. In order to access [Sqlite] database from C#, System.Data.Sqlite.dll is being used. Things are working fine windows 7, 8 and 10 desktop machines.

But in Microsoft Surface Pro 4, System.Data.Sqlite.dll is failing to load. Below is the error message being received-

"Could not load file or assembly 'System.Data.SQLite.dll' or one of its dependencies. The specified module could not be found."

While the DLL file is already available at the specified location.

Kindly update.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364

1 Answers1

0

One of the most likely causes is processor mismatch. You may have compiled your program for "Any" processor and linked to the 32 bit SQLite library.

There are ways to do this properly, but I have usually ended up compiling as x86 and using the 32 bit library to ensure compatibility on some of my customer's older machines, without added complexities.

Brad Bruce
  • 7,638
  • 3
  • 39
  • 60