I'm having trouble running a .NET application which uses LeadTools v16 (Document Imaging) on Windows Server 2008 R2 Enterprise, 64 bit.
To deploy the application:
- I have copied the .NET application with the LeadTools libraries it uses in its bin folder
(Leadtools.dll, Leadtools.Barcode.dll, Leadtools.Codecs.dll, Leadtools.ImageProcessing.Core, Leadtools.ImageProcessing.Utilities)
- ensured the library Ltbar4u.dll is in the %windir%\system32 folder
This is sufficient to run the application on a Windows 2000 machine (using it in a production environment right now).
However on the Windows 2008 64 bit machine, I get this exception:
Service cannot be started. System.BadImageFormatException: Could not load file or assembly 'Leadtools, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'Leadtools, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907'
at ***.Startup()
at ***.Service.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
=== Pre-bind state information ===
LOG: User = ***
LOG: DisplayName = Leadtools, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/***/
LOG: Initial PrivatePath = NULL
Calling assembly : ***, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind start...
***: application and username removed
Any idea what could cause this problem, am I missing something or not deploying it correct on the machine?
Edited by moderator Tuesday, November 22, 2016 10:19:01 AM(UTC)
| Reason: Updated topic title