Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"Mixed mode assembly is built against version 'v2.0.50727'" error when compiling a SDK application for Microsoft Dynamics SL


Symptoms

When you compile a Microsoft Dynamics SL Software Development Kit (SDK) application in Microsoft Visual Studio 2010, you receive the following error:

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.


↑ Back to the top


Cause

Microsoft Dynamics SL Software Development Kit (SDK) applications should target .NET Framework 3.5

↑ Back to the top


Resolution

In Microsoft Visual Studio set the advanced compile options to target .NET Framework 3.5. To do this, follow these steps:
  1. Open the project in Microsoft Visual Studio
  2. From the Project menu, select Properties
  3. On the Compile tab, click Advanced Compile Options...
  4. On the Target framework (all configurations): combo-box, select .NET Framework 3.5

↑ Back to the top


Keywords: kbmbsmigrate, kbmbspartner, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2685048
Revision : 2
Created on : 2/3/2017
Published on : 2/3/2017
Exists online : False
Views : 74