DLL not found error when trying to use SQLite in C

2019-08-25 18:11发布

问题:

I have a small app coded in C# that works with a sqlite database, so when compiling I have the compiled exe + 2 dlls: SQLite.Interop.dll and System.Data.SQLite.dll

On the machine where I compile this it works perfect (w7), but today i moved it to another machine with win XP and I got this when trying to execute it (the app has a try catch with a msgbox of the exception):

System.DllNotFoundException: Unable to load DLL 'SQLite.Interop.dll' The specified module could not be found.

All the dlls needed are in the same folder than the exe, what could be causing the error?

Is there any way I could compile or pack the dlls inside the exe?

回答1:

I'd suggest building your project for x86 processors and trying again.



标签: c# .net dll