Integrated SDK2020R1 with our code, which is target on x86, compiles ok, but at runtime we get below error (run box is 64 bit Windows 10). If I compile target x64 no runtime error, but I have to target x86 as we are hardware company and other dependencies has to be x86.
run time error:
An unhandled exception of type ‘System.BadImageFormatException’ occurred in Unknown Module.
Additional information: Could not load file or assembly ‘VideoOS.Platform.SDK.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89’ or one of its dependencies. An attempt was made to load a program with an incorrect format. occurred
I get same error from example ComponentSamples.sln code; I also tried SDK-2020-R3, SDK-2020-R2, all get same error.
Please point out what is wrong.