.NET

Reply
Mentor
JamieVJohnson2
Posts: 165
Registered: ‎08-26-2010
Message 1 of 4 (5,223 Views)
Accepted Solution

Mismatch Processor AMD64 vs MSIL

5223 Views, 3 Replies
03-05-2013 09:37 AM

Hello,

 

For the past few weeks I've been getting this in my warning box on VS 2010:

 

"There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "accoremgd", "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."

 

and one for acdbmgd, and acmgd

 

I have not changed the references or properties for my project for almost a year now.  I think it has to do with the recent updates from Microsoft (updates to add .net 4.5), or perhaps the beta updates for Autodesk 2014 products.  My project runs exclusively on AutoCAD (Mechanical) 2013, Windows 7 64bit.  My accoremgd is v4.0.30319.

 

My cpu (and all of our office) is Intel i7 or Xeon, so the AMD64 had to come from Autodesk.

I have .Net Presentation Core referenced, my Project Type is .Net 4.0.  My language is VB.Net 

 

These warning have no effect on compiling and running the code, as far as I'm aware.

Please help me remove these warnings.

 

Thank you,

 

jvj

jvj
ADN Support Specialist
Balaji_Ram
Posts: 693
Registered: ‎03-21-2011
Message 2 of 4 (5,116 Views)

Re: Mismatch Processor AMD64 vs MSIL

03-18-2013 03:29 AM in reply to: JamieVJohnson2

Hi JVJ,

 

This warning seems to be related to the .Net framwork 4.5 and Visual Studio.

Can you please try the suggestion provided in this post ?

 

http://stackoverflow.com/questions/10113532/how-do-i-fix-the-net-c-c-error-mismatch-between-processo...

 

You can also find other similar posts in MSDN that suggest ways to overcome it.



Balaji
Developer Technical Services
Autodesk Developer Network

*Expert Elite*
Alfred.NESWADBA
Posts: 8,982
Registered: ‎06-29-2007
Message 3 of 4 (5,114 Views)

Re: Mismatch Processor AMD64 vs MSIL

03-18-2013 03:32 AM in reply to: JamieVJohnson2

Hi,

 

do you also get the warning if you set your project to be built for 64bit (and not for "Any CPU")?

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Mentor
JamieVJohnson2
Posts: 165
Registered: ‎08-26-2010
Message 4 of 4 (5,100 Views)

Re: Mismatch Processor AMD64 vs MSIL

03-18-2013 06:55 AM in reply to: Alfred.NESWADBA
That solved it. So lesson to learn here, the API now works in true 64 bit as promised. Thank you, Jamie V. Johnson CAD Manager
jvj
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.