I have been trying to run the first skeleton program listed here:
https://sites.google.com/site/augmentedrealitytestingsite/download
I am using VS2010 express under Windows 7 64bit.
When I tried to build and run, it first threw:
“An attempt was made to load a program with an incorrect format”
Followed shortly by a System.BadImageFormatException due to calling a PInvoke method from the referenced ARTKPManagedWrapper.DLL.
I recompiled the reference on my PC but the problem persisted. I also tried to set the target platform to x86 (it is currently set on Any CPU) but there was no option other than Any CPU.
Does anyone have any idea what else could be going wrong here?
You have to create the option if it isn’t there. I was able to get it to work by going into Build –> Configuration Mananger going into the Platform Column and creating an new x86 configuration.
If configuration manager is not visible to you. You will want to look at this Blog
From Blog:
and from the Comments