DLL not found error when trying to use SQLite in C#

試著忘記壹切 提交于 2020-01-06 15:16:19

问题


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.



来源:https://stackoverflow.com/questions/15058048/dll-not-found-error-when-trying-to-use-sqlite-in-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!