charlesw/tesseract-ocr-dotnet — Issue #2: Exception when running VS2008 console app (The specified module could not be found: 0x8007007E))
Author: tedhols
Created: 2012-02-09 16:45:41+00:00
State: open

Hi thanks very much for creating this fork - just was I was looking for!

When I run the VS2010 version of the console app it works fine.
However when I run the VS2008 version, I get the following error immediately (before even hitting a breakpoint at the start of Main():

The specified module could not be found. (Exception from HRESULT: 0x8007007E)

at tesseractconsole.Program.Main(String[] args)\r\n
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n
at System.Threading.ThreadHelper.ThreadStart()"

I've searched the tesseractdotnet issues for this, and the only possible solutions I've seen are these posts here:
http://code.google.com/p/tesseractdotnet/issues/detail?id=1#c60
http://code.google.com/p/tesseractdotnet/issues/detail?id=1#c67

I've tried ensuring, as suggested in the second post that the console app is configured to "x86" and not "AnyCPU" but it doesn't appear to make any difference, and I'm afraid I don't understand the what is meant by "try add "leptonlibd.dll" in the output file." in the first post .

Any suggestions?