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 = 22.214.171.124, 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
First you have to target your main application to X86 CPU.
Then you must redistribute additional dlls:
- 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:
http://guides.gdpicture.com/v6/html/con ... e_NET.html
With best regards,
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.
Who is online
Users browsing this forum: No registered users and 1 guest