System.DIINotFoundException: Failed to find library "leptonica-1.80.0.dll" for platform x86

Viewed 1448

I'm running an automated application in WinForms and using Tesseract, when I run on localhost it works perfectly, but when I publish or export the bin folder to another computer, it shows me this error:

System.DIINotFoundException: Failed to find library "leptonica-1.80.0.dll" for platform x86.

in InteropDotNet.LibraryLoader.LoadLibrary(String fileName, String platformName)

in
Interop Runtimelmplementer.LeptonicaApiSignaturesInstance.Leptonica ApiSignaturesImplementation..ctor(LibraryLoader loader)
  1. I already tried to move it to myproject\packages\Tesseract.4.1.1\lib\net45\leptonika-1.80.0.dll. unsuccessfully
  2. already checked .NET versions
  3. I already tried to install the tesseract package in the project's bin folder
2 Answers

Install vc_redist.x86. It worked for me.

Reinstalling tesseract dependency in Visual Studio worked for me. Thanks

Related