Home : Bitness (x86/x64) : Bitness Roundup Whitepaper: x86, x64, AnyCPU
Q10480 - INFO: Bitness Roundup Whitepaper: x86, x64, AnyCPU

One of the most common issues/questions that has customers reaching out to support is the issue of "bitness"

DotImage contains a lot of unmanaged code, and this means we have x86 and x64 specific builds/dlls, and the ability to target AnyCPU is not directly supported.

To further complicate matters, Microsoft exceptions are not always all that clear and user friendly.

We've seen a lot of cases where System.BadImageFormatException is mistaken for being something about image formats (as in DotIamge, an Imaging toolkit). The equally unhelpful "An attempt was made to load a program with an incorrect format" message is often at the end of a long error message that looks nearly identical to several other exceptions.

Here is a roundup of our various "bitness-specific" KB articles

Run-Time Exceptions

BadImageFormatException / Attempt was made to load a program with an incorrect format

This is the most common bitness related exception and this article endeavors to cover desktop and web fixes for it

Q10165 - ERRMSG: Cause of System.BadImageFormatException, "An attempt was made to load a program with an incorrect format"

Q10450 - HOWTO: IISExpress in 64 bit / 32 bit

Q10346 - FAQ: Common Problems with x64 TWAIN Scanning

Q10181 - HOWTO: Running 32-bit DotImage assemblies in an ASP.NET application on a 64-bit machine

Design-Time Issues

Q10406 - FIX: Drag-Drop of Some Atalasoft Viewers Not Adding Control to Designer

Compile-Time  / License Compiler Exceptions

Here is some general info about fixing compile time

If you are getting compile errors while targeting x64 in  .NET 2.0, 3.0, or 3.5

Q10288 - INFO: Workaround for a license compiler exception when targeting x64 in .NET framework 2.0, 3.0, or 3.5

If you are getting compile errors while targeting x64 in .NET 4.0 or up

Q10341 - INFO: Workaround for a license compiler exception when targeting x64 in .NET framework 4.0 and up

 

 

 

 

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2019. InstantASP Ltd. All Rights Reserved