-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyNotFoundException when running sample #141
Comments
Thanks for the bug report, will be fixed in the next release. Note: That this was occurring because it failed to find the dlls might be worth turning on tracing for the 'Tesseract' source to work out where it's looking:
As the 'fix' just throws a more explicit error it won't resolve the underlying issue. |
I'm experiencing the same exception with the same line of code. There is an inner Exception that says "The given key was not present in the dictionary." I did not have this problem when I used the nuget package in a WCF application project, but when I created a class library then referenced the class library from a different WCF project it started happening. Hopefully that helps, and thank you for maintaining this code! Please let me know if there's anything I can do to help. |
I ran into this when distributing a class library to a fresh machine. I turned on verbose logging to discover that the library it was unable to load was the MS Visual C++ Redistributable. Installing this resolved the issue: http://www.microsoft.com/en-us/download/details.aspx?id=30679# |
I'll double check to make sure I have the C++ redistributables installed tomorrow. I was using the same machine the entire time... Interesting that it works in the WCF service and not the class library.... I will update tomorrow, thank you!! |
Grab the dependency walker (http://www.dependencywalker.com/) and use that to open up the lib files in the platform (x86 or x64 depending on your machine). That'll tell you if a dependency, MSVCRT*.dll or something else, is missing. |
Also double check the native tesseract dlls (x86 and x64) are being On Tue, Jan 27, 2015 at 2:49 PM, Leo notifications@github.com wrote:
|
using(var engine = new TesseractEngine( "./tessdata", "eng", EngineMode.Default ))
causes error:
The text was updated successfully, but these errors were encountered: