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

Thursday, October 10, 2013

Uninstall Language pack from CRM 2013

Scenario​ :
Many of you might have experienced following problem while you try to uninstall the existing Language pack from CRM 2013 server. If that is same as following why you are investing much of the time to investigate the reason behind it and resolve, Well because I have the answer for you.

 This is because, the setup is trying to uninstall but the admin does not have the permission to uninstall. Then how come Admin cannot execute the administrative task. :)
Solution :
The uninstallation process have to be done in elevated privilege mode. In order to do that, we need to identify the installation unique id.
  • Go to Regedit (Run > RegEdit)
  • Navigate to HKLM > Software > Microsoft > Windows > CurrentVersion > Uninstall
  • Find the language pack installation by going over all the GUID and from details panel.


  • In the properties panel, copy the value for "UninstallString". In my case, it is MsiExec.exe /X{0C524DC1-1407-0060-8121-88490F4D5549}
  • Run the command prompt with administrative mode
  • Execute the copied command
Thats it, you are uninstalling the language pack without any problem.