Search code examples
c#asp.netdllocrtesseract

Could not load file or assembly 'tesseract.dll' or one of its dependencies


I'm trying to create OCR functionality using tesseract 3.02 dll. Project building successfull but run time throwing the exception like bellow error.

Could not load file or assembly 'tesseract.dll' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (Exception from HRESULT: 0x800736B1)

How to fix this error?


Solution

  • The solution was to download the right references from NuGet as per the example project in GitHub https://github.com/charlesw/tesseract .