StefanDorresteijn
StefanDorresteijn

Reputation: 419

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

Upvotes: 2

Views: 1464

Answers (2)

StefanDorresteijn
StefanDorresteijn

Reputation: 419

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.

Upvotes: 0

wladyslaw.czyzewski
wladyslaw.czyzewski

Reputation: 770

Set 'Copy to output folder' in reference properties and recompile your software - it will fix your problem.

Upvotes: 2

Related Questions