When compiling a project in .NET 2.0, you may receive an error message similar to the folowing:
Warning 2 Assembly generation -- Referenced assembly 'Atalasoft.dotImage.dll' targets a different processor
The reason for this error is the Atalasoft DLLs are compiled either to the processor 'x86', which is for 32 bit only, OR to the processor 'x64' which is 64 bit only. To put it another way, our components "have bitness", so in order to run properly, your project needs to have a platform target of either x86 or x64, and the Atalasoft dlls being referenced need to match. You can not target 'AnyCPU'.
To resolve this problem, please change your project's target platform to 'x86' and use our x86 dlls (or, if you are explicitly targeting x64, set your platform target to 'x64' and ensure that ALL Atalasoft dlls referenced are x64 versions).
For more information, please see:
Q10165 - FAQ: Cause of System.BadImageFormatException
Q10149 - INFO: Compiling with DotImage on a 64-bit system
Q10406 - FIX: Drag-Drop of Some Atalasoft Viewers Not Adding Control to Designer
Q10341 - INFO: Workaround for a license compiler exception on 64-bit systems with VS2010 .Net 4.0
Q10288 - INFO: Workaround for a license compiler exception on 64-bit systems with VS2008/VS2010 .Net 2.0