I am trying to put together a c# program that only needs to receive a bitmap from a scanner, run a shape matching algorithm and output x, y, and orientation of all the found objects. I tried running the c# sample download but am getting a run time error at form opening that prevents me from running, Text from the error below.
An unhandled exception of type 'System.BadImageFormatException' occurred in SampleApp.exe
Additional information: Could not load file or assembly 'Interop.RR_COM_APILib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
What would could be causing the error? Moreover what would be the best way to implement the shape detection in C# or even VB.NET via visual studio?