ServiceProxy<TService>.ShouldRetry Method (MessageSecurityException, Nullable<Boolean>)


Applies To: Dynamics CRM 2015

Checks a message security exception to determine if a service call should be attempted again.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)


protected Nullable<bool> ShouldRetry(
    MessageSecurityException messageSecurityException,
    Nullable<bool> retry
Nullable<bool> ShouldRetry(
    MessageSecurityException^ messageSecurityException,
    Nullable<bool> retry
member ShouldRetry : 
        messageSecurityException:MessageSecurityException *
        retry:Nullable<bool> -> Nullable<bool>
Protected Function ShouldRetry (
    messageSecurityException As MessageSecurityException,
    retry As Nullable(Of Boolean)
) As Nullable(Of Boolean)


  • retry
    Type: System.Nullable<Boolean>

    Type: Nullable<Boolean>. null if this is the first time the check is performed; otherwise, this is the second time and a retry should not be performed.

Return Value

Type: System.Nullable<Boolean>

Type: Nullable<Boolean>
true if the service call should be tried again; otherwise, false or null.


This particular type of exception occurs in Active Directory environments or sometimes when Internet Information Services (IIS) is reset.

See Also

ServiceProxy<TService> Class
Microsoft.Xrm.Sdk.Client Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright