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

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'

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.

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

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Any additional feedback? (Optional)

Thank you for your feedback!

×