I get error when try to run application and when press to ocr.inti I get error "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."
How to fix it. On Sunday, January 10, 2010 12:29:00 PM UTC+2, serpenthill wrote: > > Hi, > i recently started a project that requires ocr and I found tessnet to > meet my requirements. The problem is that I just can't seem to make it > work. > > I'm using vs 2010 beta and followed the steps from > www.pixel-technology.com/freeware/tessnet2/ : > > Quick Tessnet2 usage > 1.Download binary here, add a reference of the assembly Tessnet2.dll > to your .NET project. > 2.Download language data definition file here and put it in tessdata > directory. Tessdata directory and your exe must be in the same > directory. > 3.Look at the Program.cs sample > > I'm not really sure how the tessdata directory should be, but I'm > assuming that I have to create a folder named "tessdata" and in that > folder have an other folder "eng", (the language definition file I > downloaded). But where should this be? Feks when I'm developping in vs > should it be in the bin->debug->tessdata->eng? > > First of all after searching the web I found that the app.config file > must be made. After that fix the program starts, but initilizing the > ocr functions makes the program exit without any warning or exception. > > Stepping through the project I find the tessnet2.cpp file is missing > or not at it's original location (z:\dev\interne\cs\tesseract-ocr-svn > \dotnet\tessnet2.cpp). This happens when i try to ocr.Init... this > also happens when running lothars example (which also has an error on > line 40: "ocr.Init(cboLang.SelectedItem.ToString(), False)" where a > string is missing). > > Am I missing some file(s)? Have I forgot to run some procedure? > > I'm greatful for any reply that helps me find a solution to my > problems. > > -- -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en --- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

