C#调用SQLite数据库,有些情况下会报以下这个错误:
无法加载 DLL“SQLite.Interop.dll”: 找不到指定的模块
实际上程序目录中是存在SQLite.Interop.dll这个文件的,为什么会报错呢?
原因可能是缺少了C++ 2010运行时库,下载并安装 vcredist_x64.exe 即可。
vcredist_x64.exe 下载地址:https://www.microsoft.com/en-us/download/details.aspx?id=13523
vcredist_x86.exe 下载地址:https://www.microsoft.com/en-us/download/details.aspx?id=5555