Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference

Posted on by Microsoft Employee

Hi,

I am using eConnect SDK 11.0. I have a windows service app in which i had added reference of GP sdk.

1) Microsoft.Dynamics.GP.eConnect.dll

2) Microsoft.Dynamics.GP.eConnect.Serialization.dll

When i build my project it build successfully but it give me the following warning

1) There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Microsoft.Dynamics.GP.eConnect, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64", "AMD64". 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.

2) There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Microsoft.Dynamics.GP.eConnect.Serialization Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64", "AMD64". 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.

Any idea what can i do to fix this issue? I am trying to build my project in Release 64 settings

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference

    Thanks everyone for help and guidance. I resolved the issue by changing build configuration from Any CPU to 64

  • Verified answer
    steveendow Profile Picture
    steveendow 2,281 on at
    RE: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference

    Hi,

    Those are the standard .NET compilation warnings when you compile with DLL references that have targeted architectures. (my simplified explanation based on my understanding)

    Based on my experience, this typically occurs if you use the AnyCPU target in your .NET projects and then reference either the 32 or 64 bit eConnect DLLs.

    To eliminate the warnings, you can choose either x86 or x64 architecture for your Platform Target setting, instead of AnyCPU under Project Properties -> Build -> Platform target.

    I personally always build to x86, as Dynamics GP is a 32 bit app, none of my integrations or Dynamics GP related solutions will likely benefit from a 64-bit build, and it just keeps things simpler for my customers to deploy integrations to the familiar Program Files (x86) directory.  I also still occasionally encounter customers who are running 32-bit workstations or servers, so I do have to maintain support for 32-bit only versions of Windows.

    But you should be able to target x64 just fine, and reference the 64-bit version of the eConnect DLLs.

    Please let me know if you have any questions or need any additional information.

  • Suggested answer
    JamesLyn Profile Picture
    JamesLyn 360 on at
    RE: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference

    Not sure if you already solved this, but if you go to your project properties under the Build tab, you can specify the Platform target. Normally you would leave it as Any CPU as to not lock your project to a specific type but in this case you can specify 64 bit (x64) as the target.

    This is just an informational warning and it is telling you your project is not truly "Any CPU" as it has a specific 64 bit dependency in it.

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    Beat Bucher GP Gee... 28,021 Super User 2024 Season 1 on at
    RE: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference

    I'm not a Dexterity developer, so I don't know what settings are appropriate when compiling new code, but what I know for sure is that Dynamics GP (and this is still true today with release 2018) is only a 32-bits application.. as such it will run on Windows 7 & 10 64-bits, but you've to be aware of the limitation related to the 32-bits environment (code execution and API calls).

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference

    @Beat..Dynamics GP 2010 supports only 32 bit? Is that the case?

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    Beat Bucher GP Gee... 28,021 Super User 2024 Season 1 on at
    RE: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference

    Uhm...

    I don't know about the AMD64 architecture.. but that sounds like you're trying to compile something in 64-bits ? Dynamics GP is a 32-bits apps only.. so that might be the cause for the error message..

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans