Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix a mismatch between processor Architectures?

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?

like image 992
ShaunP Avatar asked Jul 31 '14 15:07

ShaunP


1 Answers

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

like image 82
Donogst Avatar answered Nov 04 '22 20:11

Donogst