web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator 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..

  • Community Member Profile Picture
    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?

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator 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).

  • Suggested answer
    JamesLyn Profile Picture
    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.

  • Verified answer
    steveendow Profile Picture
    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.

  • Verified answer
    Community Member Profile Picture
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans