SQLite.dll在xp中部署时的报错处理

错误信息:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite.dll' or one of its dependencies. 找不到指定的模块。

解决办法:

sqlite官方的下载页面里面说了:The Visual C++ 2010 SP1 runtime for x86 and the .NET Framework 4.0 are required.
也就是说,除了要安装.Net Framework 4.0之外,还要安装The Visual C++ 2010 SP1 runtime,这是微软的一个单独补丁包,下载地址:http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=c32f406a-f8fc-4164-b6eb-5328b8578f03
装好该补丁包之后,就一切OK了。

补充:
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) (针对3.5) 或者
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) (针对4.0)
http://www.microsoft.com/en-us/download/details.aspx?id=8328

原文地址:https://www.cnblogs.com/softidea/p/3376518.html