Failed to load assembly System.Data.SQLite.dll

I have a perfectly working Windows Form C # .NET 4 application that uses a SQLite3 database file to store data and display forms.

When I deploy my application to any computer, and then to the dev machine, I get an exception, and this message is "Could not load the System.Data.SQLite.dll assembly or one of its dependencies. Found."

The link System.Data.SQLite.dll in the project has the value Copy Local = True. In addition, I tried to manually load the assembly from Assembly.LoadFile. Dll is placed in the output directory. I also tried to configure the platform on any processor, as well as x86, no difference. All the machines I work with are 32-bit. What is the problem? Why is my application trying to download the assembly and cannot find it?

Thank!

+5
source share
4 answers

I had the same problem after publishing my program on a separate computer. Installing the Microsoft Visual C ++ 2010 ( x86 ) patched package on a separate computer resolved the issue.

. Microsoft Visual ++ 2010 (x64), x86.

+13

"System.Data.SQLite.dll" "msvcr100.dll", , , Microsoft Visual ++ Redistributable , .

, VS2010 ++ Redistributable . , - , .

"msvcr100.dll" bin , V++ 2010 Redist .

+6

System.Data.Sqlite.dll " Microsoft Visual ++ 2012.

: http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

+2

. VMware. , : http://sqlite.1065341.n5.nabble.com/System-Data-SQLite-Deployment-Mystery-td71752.html .

  • sqlite-netFx45-setup-bundle-x86-2012-1.0.88.0.exe, DLL.
  • - dll app.exe.config debug release. , VC, .

, sqlite . NuGet, . Nuget, app.exe.config ​​.

Using NuGet behind a proxy server is described here: NuGet Behind Proxy

0
source

All Articles