title: Tessnet2 error in C#
body: <p>I am using Tessnet2 ocr in C# by following codes:</p>
  
  <pre><code> tessnet2.Tesseract ocr = new tessnet2.Tesseract();
              ocr.SetVariable("tessedit_char_whitelist", "0123456789");
              ocr.Init(Application.StartupPath + @"D:\\Program Files (x86)\\Visual Studio 2010\\Projects\\AForgeTest2\\AForgeTest2\\tessdata\\", "eng", true);
              List&lt;tessnet2.Word&gt; result = ocr.DoOCR(numberTest, Rectangle.Empty);
              string code = result[0].Text;
              testBox1.Text = code;
  </code></pre>
  
  <p>but when I run the debug it shows the error message in the 5th line:<br/> <br/></p>
  
  <pre><code>static void Main()
          {
              Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);
              Application.Run(new Form1());//the line with error
          }
  </code></pre>
  
  <p><em>FileLoadException was Unhandle:<br/>
  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.</em></p>
  
  <p><br/>
  Do you know how to solve this problem?</p>
  
  <p>Kind Regards<br/>
  Gav</p>