How do I fix a mismatch between processor Architectures?

ShaunP picture ShaunP · Jul 31, 2014 · Viewed 22.2k times · Source

I have a number of projects that I have combined in my project. The error message I get is this:

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Interop.Domino, Version=1.2.0.0, Culture=neutral, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

I have found this link which gives some interesting information.

However when I open up the Configuration Manager, everything looks fine:

Configuration manager showing Any CPU selected

Any idea of what I can do to get rid of this compiler message?

Answer

Donogst picture Donogst · Jul 31, 2014

To me this looks like the Interop.Domino Library you're referencing is specifically for 32bit (x86) programs. You can either try to find a 64 bit version of the library and reference that instead or change the compile type of your programs.

You can do this by opening the properties page for each of your projects and setting the Platform target to x86.

You might like to create an X86 Configuration in Configuration manager first, partly to test it out on and partly so it has the right name when you look at it later.

Hope this helps