Getting started with PDFNet on WinRT (mismatched ARM/x64/x86 configuration)

Q: I have already got the evaluation copy of PDFTron for WinRT, I tried to run the sample code but I got the following error:

Error 1 Error : DEP0700 : Registration of the app failed. Windows cannot install package 92fbb843-86bf-41ea-a042-5ad662d62e29 because the package requires architecture ARM, but this computer has architecture x64. (0x80073cf3) PDFNetWinRTSamples

Kindly advise on how I can overcome this error.

A:

When you run the program on your local machine or simulator, the configuration must be set to x86 or in the case of 64-bit machines, x64. If you are running on a remote machine, such a Microsoft Surface tablet, then the configuration can be set to ARM. Due to the use of native code, AnyCPU should never be used.