Menu Close

HANDLING EXCEPTIONS IN MICROSOFT DYNAMICS CRM PLUG-INS

Handling faults

Required reference in your code

 Use Microsoft.Xrm.Sdk.OrganizationServiceFault
  catch(FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault> ex)

other Common exceptions and faults to handle

System.TimeoutException

 catch(System.TimeoutException ex)

System.Exception

 catch(System.Exception ex)

Other exceptions and faults to handle

 -securityTokenValidationException
 -ExpiredSecurityTokenException
 -SecurityAccessDeniedException
 -MessageSecurityException
 -SecurityNegotiationException
Microsoft Dynamics CRM Online
  SecurityAccessDeniedException : Using a valid Microsoft Account, but it is not associated with a CRM Online Organization.
MessageSecutiyException: Your Microsoft Account is not valid or did not authenticate.

Share this:
Posted in Blog

Related Posts