update the version

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
Mahamat
Posts: 2
Joined: Fri Oct 13, 2017 4:16 am

update the version

Post by Mahamat »

Hi

after i update to the latest ver 10.2,x by referencing the new dll i start getting this message

An unhandled exception of type 'System.BadImageFormatException' occurred in ECM_Archiveo.exe

Additional information: Could not load file or assembly 'Vintasoft.Twain, Version=10.2.3.1, Culture=neutral, PublicKeyToken=153caf29a10d2e31' or one of its dependencies. An attempt was made to load a program with an incorrect format.

any idea what might be the solution

thank you
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

Re: update the version

Post by Alex »

Hi Mahamat,

The System.BadImageFormatException means that you are compiling your application in one format but the referenced DLLs have another format. Please make sure that you are using Vintasoft.Twain.dll compiled in AnyCPU (x86, x64) mode if you are compiling your application in AnyCPU (x86, x64) mode.

Best regards, Alexander
Mahamat
Posts: 2
Joined: Fri Oct 13, 2017 4:16 am

Re: update the version

Post by Mahamat »

Thank you very much ,, you are 100% right.. my problem got solved

i was referencing the any cpu and adding the 64bit dll
Post Reply