Thursday, October 17, 2013

CRM 2013 Sandbox Plugin : System.TypeLoadException

Scenario​ :
Congratulations to the Microsoft CRM team, the new launch of CRM 2013 absolutely changed the way how it is presented to the customer but it has not changed in the way of developing components or plugin for it. Since this is a transition time from CRM 2013 RC to CRM 2013 RTM, I should put forward the following observation on the table. When it comes to the sandbox plugin development, if you have already started to develop on RC, the LINQ data context does not support for quering entities. It gives the following error -
"System.TypeLoadException: Inheritance security rules violated by type : XXXXX. Derived type must either match the security accessibility of the base type or be less accessible."



Solution​ :
The solution is, its time for you all to work on the RTM version and not on the RC version. In addition to this, make sure once you have installed the RTM version, you need to re-generate the data context class with the CrmSvcUtil.exe

No comments:

Post a Comment