DynamicPDF Viewer gives exception when application runs under 64 bit

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Viewer (v2)  /  DynamicPDF Viewer gives exception when application runs under 64 bit

DynamicPDF Viewer (v2) Forum

I have installed DynamicPDF Viewer on my machine & set sample example build mode target to Any CPU.
As by default it runs on 64 bit (on Windows Server 2008), it gives following exception
Could not load file or assembly 'ceTe.DynamicPDF.AxViewer.Control, Version=2.0.0.0, Culture=neutral, PublicKeyToken=09b5ce0d5c0a9d8b' or one of its dependencies. An attempt was made to load a program with an incorrect format.

But when I forced application to run under x86, it runs smoothly.

Can anybody suggest why this is happening? & what is alternative to avoid this exception.
Posted by a ceTe Software moderator
Hello,

DynamicPDF Viewer is supported on 32-bit platform only. It has no support for 64-bit platform so is cannot be used within a 64-bit application. When you set your project to “Any CPU” and execute it on a 64-bit machine it will execute the application as a 64-bit application and hence the error. If you need to run your application that uses the DynamicPDF Viewer on a 64-bit machine you have to explicitly compile it as a 32-bit application.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 12:41 AM.