Hi,
I am trying to sum the 2 currency fields and post the result to total currency field in ms crm 2011 plugin but getting following cast exception error while executing the following line.
projafp["bap_estimatedrevenue"] = (((Money)(projAFPRecord[0]["bap_estimatedrevenue"]))).Value + ((afpPostImage.Attributes.Contains("bap_estimatedrevenue") ? ((Money)(afpPostImage["bap_estimatedrevenue"])) : new Money(0))).Value
service.Update(projafp);
Error:-
System.InvalidCastException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #E5F8C802
Please help how to resolve this issue. Its very urgent.
Thanks
Yadav