Robin De Schepper
Robin De Schepper

Reputation: 6364

Tesseract OCR "VCRUNTIME140.dll is missing from your computer" but sample solution works?

I installed the Tesseract NuGet Package in my Visual Studio 2013 solution and during runtime when I initialise a Tesseract enginge it throws the error "The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem."

The strange thing is that a sample solution found here does compile, build and run, and either can find the dll or doesn't need it? I've checked the Configuration Manager and the Reference Manager. They all have the same dll's in the build output folder, the only difference that I can find is in the .config files where the sample seems to rely on the .NET 4.0 Framework and my solution on .NET 4.5.2 Framework. Any ideas on what I can try to make my solution compile in the same way as the sample solution?

Upvotes: 0

Views: 1650

Answers (1)

nguyenq
nguyenq

Reputation: 8365

Tesseract NuGet Package was created using VS2015; therefore, it requires Visual C++ Redistributable for Visual Studio 2015. Since the sample solution you downloaded and compiled with your VS2013, it would not depend on VC++ 2015 runtime but on VC++ 2013, which comes with your VS2013 IDE installation.

Upvotes: 2

Related Questions