Legacy Content Warning
This content refers to old versions of the .NET framework that are not supported in 11.0 and newer. We no longer support .NET < 3.5 in 11.0 and newer)
Original Article Content
When compiling a project in .NET 2.0, you may receive an error message similar to the following:
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:
Q10480 - INFO: Bitness Roundup Whitepaper: x86, x64, AnyCPU
Q10158 - INFO: Warning:Referenced assembly targets a different processor