ssongi / tesseractdotnet

Automatically exported from code.google.com/p/tesseractdotnet
0 stars 0 forks source link

System.IO.FileLoadException #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create new WinForms project
2. Add reference to tesseractengine3.dll
3. var x = new TesseractProcessor();

What is the expected output? What do you see instead?
Main form window

What version of the product are you using? On what operating system?
RC

Please provide any additional information below.
Thrown System.IO.FileLoadException
This exception is thrown if the file is not a valid .NET Framework assembly.

Many thanx for this library. I search for something last 2 week.

Original issue reported on code.google.com by duce...@gmail.com on 28 Feb 2011 at 2:15

GoogleCodeExporter commented 8 years ago
Please help me to check that Leptonica library has already been copied to 
application path first.

Original comment by congnguy...@gmail.com on 1 Mar 2011 at 1:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes leptonlibd.dll and tesseractengine3.dll in same folder.

There my exception text translate:

System.IO.FileLoadException: Error in loading "tesseractengine3, 
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" or one of it dependency. 
Parallel configuration wrong. 

Filename: "tesseractengine3, Version=0.0.0.0, Culture=neutral, 
PublicKeyToken=null" ---> System.Runtime.InteropServices.COMException 
(0x800736B1): Parallel configuration wrong. (Exception from из HRESULT: 
0x800736B1)
   в MODITest.Form1.Form1_Load(Object sender, EventArgs e)
   в System.Windows.Forms.Form.OnLoad(EventArgs e)
   в System.Windows.Forms.Form.OnCreateControl()
   в System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   в System.Windows.Forms.Control.CreateControl()
   в System.Windows.Forms.Control.WmShowWindow(Message& m)
   в System.Windows.Forms.Control.WndProc(Message& m)
   в System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   в System.Windows.Forms.ContainerControl.WndProc(Message& m)
   в System.Windows.Forms.Form.WmShowWindow(Message& m)
   в System.Windows.Forms.Form.WndProc(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Original comment by duce...@gmail.com on 1 Mar 2011 at 6:19

GoogleCodeExporter commented 8 years ago
Sorry, I cannot reproduce the problems. Please check your settings or can you 
send to me the project? Thanks!

Original comment by congnguy...@gmail.com on 1 Mar 2011 at 7:18

GoogleCodeExporter commented 8 years ago
Which settings I need to check? May be I do something wrong. I not so strong in 
InterOp. Project is simple form with 1 button. Here it is 
http://www.filehosting.org/file/details/207180/TesswraperTest.zip
Sample app from RC archive throws same exception. Windows 7 x32, VS 2010

Original comment by duce...@gmail.com on 1 Mar 2011 at 7:59

GoogleCodeExporter commented 8 years ago
The project you provided, I run without problems. Please check your ide 
enviroment.

Original comment by congnguy...@gmail.com on 1 Mar 2011 at 8:54

GoogleCodeExporter commented 8 years ago
I find that
http://social.msdn.microsoft.com/forums/en-US/vclanguage/thread/692915bc-54e6-4b
09-8b32-92d16c2afaaf/

May be your lib compilated on another processor architecture? Or missing some 
dlls?

Original comment by duce...@gmail.com on 1 Mar 2011 at 9:22

GoogleCodeExporter commented 8 years ago
I found similar problem on russian MSDN.
Library and my project must be compiled as Release configuration.
I set Release, but exception still throwing.

http://social.msdn.microsoft.com/Forums/ru-RU/fordesktopru/thread/16ddcf3d-a83b-
4dcb-8949-f088a284b929/

Original comment by duce...@gmail.com on 1 Mar 2011 at 9:30

GoogleCodeExporter commented 8 years ago
Have you tried to build engine wrapper? I ask this because I don't sure about 
assembly I provided, is compatible with your machine.

If not yet, please try to create an engine wrapper first, you can find tutorial 
at here: http://code.google.com/p/tesseractdotnet/wiki/TesseractEngineWrapper

Thanks for your cooperation.

Original comment by congnguy...@gmail.com on 1 Mar 2011 at 10:51

GoogleCodeExporter commented 8 years ago
I have not C++ in my VS 2010
And I can not find "Common Language Runtime Support: Old Syntax 
(/clr:oldSyntax)" in my project properties.

Original comment by duce...@gmail.com on 1 Mar 2011 at 11:03

GoogleCodeExporter commented 8 years ago
duce, I was also able to run your test application without a problem

Original comment by ro...@rovr1.com on 1 Mar 2011 at 6:40

GoogleCodeExporter commented 8 years ago
At home VS throw the same exception on my project and on your sample app.
This can't be a coincidence.
Thanks anyway for your help.

Original comment by duce...@gmail.com on 1 Mar 2011 at 7:40

GoogleCodeExporter commented 8 years ago
Rather my app throw same exception, and your sample app throw 
System.BadImageFormatException

Original comment by duce...@gmail.com on 1 Mar 2011 at 7:42

GoogleCodeExporter commented 8 years ago
The tesseractenginewrapper3.dll is built for x86. You can changed tesseract 
project settings to build for Any CPU.

System.BadImageFormatException was throwed when an executable (manged code) 
built with Any CPU tried to load a dll build with x86.

Original comment by congnguy...@gmail.com on 2 Mar 2011 at 1:38

GoogleCodeExporter commented 8 years ago
"Common Language Runtime Support: Old Syntax (/clr:oldSyntax)" is only in C++ 
project.

Original comment by congnguy...@gmail.com on 2 Mar 2011 at 1:39

GoogleCodeExporter commented 8 years ago
I tryed all of project settings. AnyCPU and x86. On VS2010 with C# and with C# 
and C++. On 64 processor architecture and 32. On Windows7 and Windows 2008 
Server R2.
Install C++ Redist 2005, 2008, 2010. No effect.

I use sxstrace.exe utility for trace error.

Error: can not resolve reference
Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e1
8e3b",type="win32",version="9.0.21022.8"

For what purposes in manifest uses Microsoft.VC90.DebugCRT?

Original comment by duce...@gmail.com on 2 Mar 2011 at 10:03

GoogleCodeExporter commented 8 years ago
Dear ducebod,
As I commented on item #9: "I don't sure about assembly I provided, is 
compatible with your machine."

So, you should install c++ ide (vs 2008), and try to do a wrapper. If you get 
problems during do it, I can support.

Cong.

Original comment by congnguy...@gmail.com on 2 Mar 2011 at 10:39

GoogleCodeExporter commented 8 years ago
Good evening,

I have the exact same error at work (XP SP3 x86). At home, it works fine (Vista 
SP1 x86).
I tried recompiling the wrapper using the method described in the wiki page.
It was actually harder than the prescribed method.
First, there was a missing include (I added a comment about that in the wiki 
page).
Then, /Zi and /Gm flags were unsupported (so said VC++, I haven't developped 
C++ for almost 2 years and after this fancy adventure I guess I'm not ever 
doing that again).
Anyway, after turning /Zi to /Z7 and /Gm to /Gm-, it compiled.

But using it w/ C#.NET 4 still does not work - same error comes up.

I would gladly do anything to get this working. I recently did the mistake of 
installing Tesseract 3 which messed up Tesseract .NET 2 wrapper (there's a 
thread about this upon the Tesseract google forum) and considering this cause - 
consequence, I do not think Tesseract 2 .NET wrapper is really suitable for any 
use beside experimental ones.
I have great expectancies about your project, Mr N'Guyen, and I would like to 
add I'm very grateful to you to have such an enterprise.

Best regards,
Benjamin Neau

Original comment by benjamin...@gmail.com on 4 Mar 2011 at 11:03

GoogleCodeExporter commented 8 years ago
Benjamin,
You can find solution here for your issue: 
http://code.google.com/p/tesseractdotnet/issues/detail?id=2&can=7

Original comment by congnguy...@gmail.com on 5 Mar 2011 at 2:45

GoogleCodeExporter commented 8 years ago
I find machine with 32 bit XP and install VS 2008 C++ Express edition. But it 
not opens your solution. "The project maked in newer version of VS". Which 
version you using?

Original comment by duce...@gmail.com on 5 Mar 2011 at 7:47

GoogleCodeExporter commented 8 years ago
My IDE version is "Visual Studio Team System 2008 SP1". (version 9.0.21022.8 
RTM)

Original comment by congnguy...@gmail.com on 5 Mar 2011 at 9:32

GoogleCodeExporter commented 8 years ago
Cong,

It does not fix my problem. The missing include is something I already solved.
My issue is that the assembly you provide or the ones I compiled cannot be 
loaded.

Here is the exception I get while trying to use the wrapper in a C# program:
System.IO.FileLoadException: Could not load file or assembly 'tesseractengine3, 
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its 
dependencies. The system cannot find the file specified.

As i stated earlier in this thread:
- I tried out your sample application at work (XP SP3 x86) -> it does not work
- I tried out your sample application at home (Vista SP1 x86) -> it does work
- I recompiled the wrapper (debug)
- I tried out your sample application at work (XP SP3 x86) with my recompiled 
wrapper -> it does not work
- I tried out your sample application at home (Vista SP1 x86) with my 
recompiled wrapper -> it does not work

Thanks for your time and consideration!

Best regards,
Benjamin

Original comment by benjamin...@gmail.com on 5 Mar 2011 at 11:43

GoogleCodeExporter commented 8 years ago
@benjamin: there must be something else: I installed VS #C 2008 just because of 
tesseractengine3 and it worked (I just need to set #include as mentioned 
above). Interesting part of error message is "The system cannot find the file 
specified." Do you have leptonica library in path (leptonlib.dll and 
leptonlibd.dll)? Can you find out what file system can not find? 

Original comment by zde...@gmail.com on 5 Mar 2011 at 2:01

GoogleCodeExporter commented 8 years ago
I have same exception

I use sxstrace.exe utility for trace error.

Error: can not resolve reference
Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e1
8e3b",type="win32",version="9.0.21022.8"

And I don't found leptonlibD.dll file in RC version. Just one leptonlib.dll

Original comment by duce...@gmail.com on 5 Mar 2011 at 2:34

GoogleCodeExporter commented 8 years ago
leptonlibd is leptonica debug library. You can find it in source code: 
http://code.google.com/p/tesseractdotnet/source/browse/trunk/dotnetwrapper/Tesse
ractBasedOCRAnalysis/Components/leptonlibd.dll

It must be in PATH (e.g. in the same directory where is you exe and 
tesseractengine3.dll or in system PATH directory. There are plenty information 
about PATH on internet e.g. http://en.wikipedia.org/wiki/Environment_variable, 
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/p
ath.mspx?mfr=true, http://vlaurie.com/computers2/Articles/environment.htm) 

Original comment by zde...@gmail.com on 6 Mar 2011 at 9:54

GoogleCodeExporter commented 8 years ago
Thanks for help
But exception still throwing :(

Original comment by duce...@gmail.com on 6 Mar 2011 at 10:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Can you help me?
A error appears ("Fail to initalize Tesseract Engine 3.01") when I choose the 
path of trained languages for tesseract 3 (from main menu >> tools >> options 
in TesseractEngine3Wrapper_v1.0RC application). I downloaded them from 
http://code.google.com/p/tesseract-ocr/downloads/list.

Original comment by phamphih...@gmail.com on 6 Mar 2011 at 4:04

GoogleCodeExporter commented 8 years ago
Dear all,

Some things as belows will help me to isolate the issue easily:

- download the latest source code from tesseract-ocr: 
   - version 3.01 r552
   - using: svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-read-only

- do all steps on wiki item: 
http://code.google.com/p/tesseractdotnet/wiki/TesseractEngineWrapper

- use tesseractengine3.dll and tessdata (tessdata folder after checking out) 
from above step for example application.

I will support if you cannot build a wrapper.

If you get error when run example application, please help me collect the 
exception information included: message and stacktrace.

Cong.

Original comment by congnguy...@gmail.com on 6 Mar 2011 at 4:09

GoogleCodeExporter commented 8 years ago
Error when run example application

Stack trace:
   в Tesseract.OCR.AppEntry.MainForm.End()
   в Tesseract.OCR.AppEntry.MainForm.Dispose(Boolean disposing)
   в System.ComponentModel.Component.Finalize()

Message:
Could not load file or assembly "tesseractengine3, Version = 0.0.0.0, Culture = 
neutral, PublicKeyToken = null" or one dependent upon the components. Attempt 
was made to load the program with an incorrect format.

Windows 7 x64, Windows 7 x32
Visual Studio 2010 C#
C++ redist 2005, 2008, 2010 installed

Original comment by duce...@gmail.com on 6 Mar 2011 at 5:26

GoogleCodeExporter commented 8 years ago
@phamphih: you are mixing versions! 
http://code.google.com/p/tesseract-ocr/downloads/list has language files for 
3.00 version! 3.01 language files are in svn only (at the moment): 
http://code.google.com/p/tesseract-ocr/source/browse/#svn%2Ftrunk%2Ftessdata.

Language files tesseract-ocr 3.00 and 3.01 are not compatible!

Original comment by zde...@gmail.com on 6 Mar 2011 at 9:05

GoogleCodeExporter commented 8 years ago
@duce..: sorry, we have not through out issue for a long time.

I want to confirm that:
- should not use assembly I have provide due to compatibles are not manage with 
private machine. (It should be a demo/example only.)
- Can you pass building a wrapper with all things I noted above (use 
sources/data/third party from svn).

If all things are yup, I will try to get another machine (new machine without 
related tesseract) to reproduce your problems.

Cong.

Original comment by congnguy...@gmail.com on 7 Mar 2011 at 2:31

GoogleCodeExporter commented 8 years ago
@Zdenko: thank you so much! So far you have helped me much!

Original comment by congnguy...@gmail.com on 7 Mar 2011 at 2:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
@congnguy thanks for help
Now I will install on virtual machine Vista and try to do wrapper

Original comment by duce...@gmail.com on 7 Mar 2011 at 7:07

GoogleCodeExporter commented 8 years ago
I confused in instruction how to do wrapper.
1. From tesseract-ocr SVN download tesseract sources in folder1
2. Copy and override files from "tesseractdotnet - Revision 40: 
/trunk/dotnetwrapper/TesseractEngineWrapper" into folder1
3. Open downloaded tesseract project in VS, "Add existing item" 
(tesseractenginewrapper.h and tesseractenginewrapper.cpp) into root of project
4. Change settings
5. Build
Right?

May I use Visual Studio 2010 C++ Ultimate to do that?

Original comment by duce...@gmail.com on 7 Mar 2011 at 7:41

GoogleCodeExporter commented 8 years ago
I downloaded traineddata languages from 
http://tesseract-ocr.googlecode.com/svn/trunk/tessdata (use svn checkout)but 
TesseractEngine3Wrapper_v1.0RC is still appear "Fail to initalize Tesseract 
Engine 3.01" message.
Even, with the statement : bool status = _ocrProcessor.Init(); 
status is also = "false".

Can you help me to resolve above problem?

I downloaded the latest projects source code from 
"http://tesseractdotnet.googlecode.com/svn/trunk/" and 
"http://tesseract-ocr.googlecode.com/svn/trunk/".

Original comment by phamphih...@gmail.com on 7 Mar 2011 at 7:51

GoogleCodeExporter commented 8 years ago
@duce: Yup, it's right. I want to clarify all steps here:
1. ok (v3.01 r552)
2. You have to search 3 files name to find sub folder respectively.
3. you have to open solution in folder1\vs2008\tesseract.sln -> add 2 files to 
tesseract project
4. ok
5. ok

@phamhih: TessBaseAPI provides Init() method and return the intialize status, 
not other messages. So with your message I cannot figure out problems here.

Did you use tesseract.exe (v3.01 in .\vs2008\bin.debug) command line?
If yes: are the same prblem?
else: please try it first and report the results.
Here is tesseract-ocr document: 
http://code.google.com/p/tesseract-ocr/wiki/ReadMe

Thanks,
Cong.

Original comment by congnguy...@gmail.com on 7 Mar 2011 at 9:03

GoogleCodeExporter commented 8 years ago
Another question about changing settings while building wrapper:
Output File: tesseractengine3.dll - did you mean 
Linker->Output file or Browse information->Output file?
I do not know С++
I chose Linker subitem.
And after building (no errors - Build: 13 succeeded, 0 failed, 0 up-to-date, 0 
skipped ) I get tesseractengine3.dll in folder1/vs2008 folder
What to do next?

Thanks again for your help

Original comment by duce...@gmail.com on 7 Mar 2011 at 9:26

GoogleCodeExporter commented 8 years ago
@duce:
Yup, it's "Linker->Output file": tesseractengine3.dll (or any name if you want).

Now, add Tesseract.OCR.AppEntry into solution. And right-click on 
References->switch to Properties tab -> Choose tesseract.

Copy liptonica library to output folder of Tesseract.OCR.AppEntry project if it 
does not exist, mark this project as Startup project.

Right-click on this project -> Choose Properties -> switch to Debug tab -> 
check to "Enable unmanaged code debugging" -> it will help you to debug into 
deep c++ level.

Configure project to build for x86 platform.

Hope it succeed :)

Original comment by congnguy...@gmail.com on 7 Mar 2011 at 9:43

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
@congnguy
References->Projects you means?

All completed
Now at the start I get same exception as early. Thats Output info:

............
'Tesseract.OCR.AppEntry.exe': Loaded 
'D:\Downloads\TesseractEngine3Wrapper_v1.0RC 
NEW\dotnetwrapper\TesseractBasedOCRAnalysis\bin\Debug\tesseractengine3.dll'
'Tesseract.OCR.AppEntry.exe': Loaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none
_bb1f6aa1308c35eb\msvcr90d.dll'
'Tesseract.OCR.AppEntry.exe': Loaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none
_bb1f6aa1308c35eb\msvcp90d.dll'
Module not found. (Exception from HRESULT: 0x8007007E) [My tranlation from rus]
'Tesseract.OCR.AppEntry.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll'
'Tesseract.OCR.AppEntry.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 
'D:\Downloads\TesseractEngine3Wrapper_v1.0RC 
NEW\dotnetwrapper\TesseractBasedOCRAnalysis\bin\Debug\tesseractengine3.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 'C:\Windows\SysWOW64\ws2_32.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 'C:\Windows\SysWOW64\nsi.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none
_bb1f6aa1308c35eb\msvcp90d.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none
_bb1f6aa1308c35eb\msvcr90d.dll'
First-chance exception at 0x74f8b727 in Tesseract.OCR.AppEntry.exe: Microsoft 
C++ exception: HRException at memory location 0x0027dbbc..
First-chance exception at 0x74f8b727 in Tesseract.OCR.AppEntry.exe: Microsoft 
C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x74f8b727 in Tesseract.OCR.AppEntry.exe: Microsoft 
C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x74f8b727 in Tesseract.OCR.AppEntry.exe: Microsoft 
C++ exception: [rethrow] at memory location 0x00000000..
A first chance exception of type 'System.IO.FileNotFoundException' occurred in 
Tesseract.OCR.AppEntry.exe
'Tesseract.OCR.AppEntry.exe': Loaded 
'C:\Windows\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll'
   в Tesseract.OCR.AppEntry.MainForm..ctor()
   в Tesseract.OCR.AppEntry.Program.Main() в D:\Downloads\TesseractEngine3Wrapper_v1.0RC NEW\dotnetwrapper\TesseractBasedOCRAnalysis\Tesseract.OCR.AppEntry\Program.cs:строка 36
'Tesseract.OCR.AppEntry.exe': Loaded 
'D:\Downloads\TesseractEngine3Wrapper_v1.0RC 
NEW\dotnetwrapper\TesseractBasedOCRAnalysis\bin\Debug\tesseractengine3.dll'
'Tesseract.OCR.AppEntry.exe': Loaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none
_bb1f6aa1308c35eb\msvcr90d.dll'
'Tesseract.OCR.AppEntry.exe': Loaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none
_bb1f6aa1308c35eb\msvcp90d.dll'
'Tesseract.OCR.AppEntry.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll'
'Tesseract.OCR.AppEntry.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 
'D:\Downloads\TesseractEngine3Wrapper_v1.0RC 
NEW\dotnetwrapper\TesseractBasedOCRAnalysis\bin\Debug\tesseractengine3.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 'C:\Windows\SysWOW64\ws2_32.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 'C:\Windows\SysWOW64\nsi.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none
_bb1f6aa1308c35eb\msvcp90d.dll'
'Tesseract.OCR.AppEntry.exe': Unloaded 
'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none
_bb1f6aa1308c35eb\msvcr90d.dll'
First-chance exception at 0x74f8b727 in Tesseract.OCR.AppEntry.exe: Microsoft 
C++ exception: HRException at memory location 0x0455e1d8..
First-chance exception at 0x74f8b727 in Tesseract.OCR.AppEntry.exe: Microsoft 
C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x74f8b727 in Tesseract.OCR.AppEntry.exe: Microsoft 
C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x74f8b727 in Tesseract.OCR.AppEntry.exe: Microsoft 
C++ exception: [rethrow] at memory location 0x00000000..
A first chance exception of type 'System.IO.FileNotFoundException' occurred in 
Tesseract.OCR.AppEntry.exe
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in 
Tesseract.OCR.AppEntry.exe

Additional information: Не найден указанный модуль. 
(Исключение из HRESULT: 0x8007007E)

The program '[2684] Tesseract.OCR.AppEntry.exe: Managed' has exited with code 0 
(0x0).
The program '[2684] Tesseract.OCR.AppEntry.exe: Native' has exited with code 0 
(0x0).

Original comment by duce...@gmail.com on 7 Mar 2011 at 11:17

GoogleCodeExporter commented 8 years ago
Additional information: Не найден указанный модуль. 
(Исключение из HRESULT: 0x8007007E)

Additional information: Module not found. (Exception from HRESULT: 0x8007007E)

Original comment by duce...@gmail.com on 7 Mar 2011 at 12:15

GoogleCodeExporter commented 8 years ago
Is there already a solution for the problem?
Is it not possible to build a dll for x86 and another for x64?

Your Projekt is very nice. Iam waiting so long for a tesseract 3 wrapper!!

Original comment by scholz.f...@googlemail.com on 29 Mar 2011 at 10:03

GoogleCodeExporter commented 8 years ago
to Duce : Duce have you solved your problem with exception  
"System.IO.FileLoadException: Error in loading "tesseractengine3, 
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" or one of it 
dependency." ? Because I have the same problem as you and I don`t know what I 
do wrong.

Thank you for help.

Original comment by vaclav.r...@gmail.com on 8 Apr 2011 at 1:13

GoogleCodeExporter commented 8 years ago
No, my problem not solved.

Original comment by duce...@gmail.com on 8 Apr 2011 at 1:36

GoogleCodeExporter commented 8 years ago
Duce, I had the same problem. Problem was fixed by installing Visual C++ 2008 
Express Edition 
(http://download.microsoft.com/download/A/5/4/A54BADB6-9C3F-478D-8657-93B3FC9FE6
2D/vcsetup.exe). But tesseractengine3.dll works only if VC++ 2008 is installed. 
I don't know how to make it work without it... I tried to compile dll staticly 
but it was no effect...

Original comment by toxa.ivc...@gmail.com on 11 Apr 2011 at 5:02

GoogleCodeExporter commented 8 years ago
With C++ 2010 Express it is also working. But not with VS2010 Ultimate...

Original comment by scholz.f...@googlemail.com on 11 Apr 2011 at 12:07

GoogleCodeExporter commented 8 years ago
I have not reproduced the problem (System.IO.FileLoadException) on a new 
machine (OS: win7 64, IDE: vs team system 2008).

I have two scenarios:
1. Configure Application build to "Any CPU" platform 
=> throw out exception: System.BadImageFormatException

2. Configure Application build to "x86"
=> no problems here

Original comment by congnguy...@gmail.com on 13 Apr 2011 at 4:09

GoogleCodeExporter commented 8 years ago
Hello guys,

my troubles with "System.IO.FileLoadException: Error in loading 
"tesseractengine3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" or 
one of it dependency." seems to be solved. Zdenko helped me via email and I 
want to share with you the new facts. I have Visual Studio 2010 and Win XP with 
SP3. I try to explain it in following steps

1. I downloaded the last version of tesseract-ocr from svn 
(http://tesseract-ocr.googlecode.com/svn/trunk/). Be carefull in "Download" 
section was missing some kind of project (.vcxproj).

2. Start vs2008\tesseract.sln and automatically was converted solution from VS 
2008 to VS 2010 without errors.

3. I set tesseract project by this tutorial 
http://code.google.com/p/tesseractdotnet/wiki/TesseractEngineWrapper

4. After build of solution, I got the new tesseractengine3.dll and I replaced 
old tesseractengine3.dll in dotnetwrapper/TesseractBasedOCRAnalysis

5. dotnetwrapper example ran without exception. :-)

These steps helped me and solved my problem with System.IO.FileLoadException. 
Zdenko thanks :-)

V.

Original comment by vaclav.r...@gmail.com on 13 Apr 2011 at 3:03