When you use leadtools in an assemlby and reference this assemlby by another assembly (e.g. a dll uses the Leadtools.Forms.Ocr and an executable references that dll), make sure that both assemlbies reference the Leadtools assembly, if not referenced assemlby load errors can occur.

When building these assemblies on an x64 platform and you are using the x86 leadtools assemblies, make sure you’re assemblies are build targeting the x86 platform, else assembly load errors can occur. 

image

Erros
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.
or
Could not load file or assembly ‘Leadtools.Barcode, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907’
or
Could not load file or assembly ‘Leadtools.Codecs, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907’
or
Could not load file or assembly ‘Leadtools.Forms, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907’
or
Could not load file or assembly ‘Leadtools.Forms.Ocr, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907’
or
Could not load file or assembly ‘Leadtools.Forms.Ocr.Plus, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907’
etc.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.