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.

Plug-in execution causes System.TypeLoadException in Microsoft Dynamics CRM 2011


View products that this article applies to.

Symptoms

In Microsoft Dynamics CRM 2011, when you attempt to execute a plug-in, you receive the following error:

System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assemby 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

↑ Back to the top


Cause

There is a mismatch in the .NET Framework versions between the computer the plug-in was developed on and the servers that host the Dynamics CRM 2011 deployment. The computer that the plug-in was developed on has .NET Framework version 4.5 installed, while the servers that host the Dynamics CRM 2011 deployment have .NET Framework 4.0 installed.

↑ Back to the top


Resolution

To resolve this issue, the servers that host the Dynamics CRM 2011 deployment need to have their .NET Framework upgraded to version 4.5. The link to download the .Net Framework version 4.5, along with installation instructions, is http://www.microsoft.com/en-us/download/details.aspx?id=30653

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 3055434
Revision : 1
Created on : 1/7/2017
Published on : 4/8/2015
Exists online : False
Views : 182