Error: An attempt was made to load a program with an incorrect format

Product: PDFTron.NETCore.Windows.x64

Product Version: 9.2.0

I always get the error when I create PDFDoc like this.

PDFDoc doc = new PDFDoc("D:/PREMIUM_CERTIFICATE.pdf");

It always returns;
“An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)”

I am using PDFTron.NETCore.Windows.x64 via NuGet, so how to resolve this problem?

Thank you for contacting us about this. Could you please provide us with some additional information about your setup:

  • Visual Studio version
  • .Net Core version you are looking to target
  • Code you are using