Extension Methods for CRM 2011 Online Instances Causing TypeLoad Exceptions -
i writing plugin client on crm online trial tenant (so assume has latest patches etc.) , have come across error i’ve not seen before. speaking use extension method along lines of following, clarity of code really: public static void addorupdate(this entity e, string propertyname, object value) { if (e.attributes.contains(propertyname)) { e.attributes[propertyname] = value; } else { e.attributes.add(propertyname, value); } } nothing hugely controversial there think? anyway whatever reason if include class file part of plugin client, following error thrown: unhandled exception: system.servicemodel.faultexception`1 system.typeloadexception: microsoft dynamics crm has experienced error. reference number administrators or support: #9a0442a7 [foo.bar.plugins: foo.bar.plugins.trackactivity] [6ed535ec-c7a8-e211-858f-3c4a92dbdc37: foo.bar.plugins.trackactivity: create of task] there no trace included, shows plugin isn’t executed (even if fir...