简体   繁体   中英

Unable to load DLL 'System.Data.SQLite.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) for some customers

Some of my customers are getting this error:

Unable to load DLL 'System.Data.SQLite.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) for some customers

So far, I think about 20% of my customers can't open the software because of this. Here are the ways I've tried to fix it:

  1. Put SQLite file in .exe folder
  2. Put SQLite file in system32 folder
  3. Merge SQLite file with .exe (SmartAssembly)

I really need a fix for it, because atleast 1 in 5 customers can't use my software now. Thanks, Stefan

在参考属性中设置“复制到输出文件夹”并重新编译您的软件 - 它将解决您的问题。

For people who find this and have no idea how to fix it, the issue was in the C++ framework that was installed. The SQLite DLL could be found but it couldn't be loaded. Stupidly enough it wasn't showing me that error, it was showing me this one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM