Setup and Deployment - Windows 7 – 64-bit

Some other discussions. Feel free to post anything here !
Post Reply
Phil14
Posts: 3
Joined: Wed Mar 10, 2010 10:02 am

Setup and Deployment - Windows 7 – 64-bit

Post by Phil14 » Wed Mar 10, 2010 12:17 pm

Hello,

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 = 6.6.0.0, 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 vb.net '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,

Phil14

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

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

Post by Loïc » Thu Mar 11, 2010 5:41 pm

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:

https://www.gdpicture.com/guides/gdpicture/v6/html/con ... e_NET.html

With best regards,

Loïc Carrère

Phil14
Posts: 3
Joined: Wed Mar 10, 2010 10:02 am

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

Post by Phil14 » Mon Mar 15, 2010 11:19 am

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
Phil14

Post Reply

Who is online

Users browsing this forum: sunflower and 1 guest