Page 1 of 1

Setup and Deployment - Windows 7 – 64-bit

Posted: Wed Mar 10, 2010 12:17 pm
by Phil14

I am finishing the evaluation of GdPicture.NET before purchasing.

I can’t deploy my test application using GdPicture.NET to a target pc Windows 7 - 64 bits.
Installing the application on the target PC goes well, but the following error occurs at runtime :

System.BadImageFormatException: Could not load file or assembly 'GdPicture.NET, Version =, Culture = neutral, PublicKeyToken = 3058ead3ae55af17' or one of its dependencies. Attempt to load a program with an incorrect format

I did another test with your example 'Document Viewer With Thumbnails."
A similar problem occurs: installing goes well but the application does not run correctly : education GdViewer1.DisplayFromFile ( "), in your example code, always returns 500 (PdfRasterizerPluginNotLoaded)

I used the same setup for deployment on a target pc Windows XP and on a target pc Windows Vista.
The installation and application running work correctly in both environments.

Here are the different parameters of environmental testing error

Development Pc :
Windows XP Professional
Visual Basic 2005
GdPicture.NET Toolkits Ver. 6.6.5 (the referenced dll in the project is of this version) - Trial version.
Deployment setup generated in 32-bit, then in 64-bit (failure in 2 cases)

Target Pc :
AMD Athlon II 2.70 GHz - RAM 3 GB
Windows 7 Home Edition Premium - 64 bit
Installation in 'Program Files (x86)' for the setup for 32-bit
Installation in 'Program Files' for the setup in 64-bit

Thank you in advance for your reply
Best regards,


Re: Setup and Deployment - Windows 7 – 64-bit

Posted: Thu Mar 11, 2010 5:41 pm
by Loïc
Hi Phil,

First you have to target your main application to X86 CPU.

Then you must redistribute additional dlls:

- GdPicture.NET.image.gdimgplug.dll
- GdPicture.NET.pdf.gdpdfplug.dll
- GdPicture.NET.twain.gdtwain.dll if you use TWAIN features.
- GdPicture.NET.ocr.tesseract.dll if you use OCR features
- GdPicture.NET.barcode.1d.reader.dll if you use 1D barcode recognition features.

Please have a look on the reference guide at the "Redistributing GdPicture.NET" section: ... e_NET.html

With best regards,

Loïc Carrère

Re: Setup and Deployment - Windows 7 – 64-bit

Posted: Mon Mar 15, 2010 11:19 am
by Phil14
Hello Loïc,

Thank you for your quick response and your efficiency.

For information the error was caused by the target option ‘Any CPU’.
Choosing option ‘x86’ has corrected the error.

Best regards