SALES: 1-800-867-1380

AuthorizationFailedException Class

 

The exception that occurs when an authorization attempt fails.

Namespace:   Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

System.Object
  System.Exception
    Microsoft.ServiceBus.AuthorizationFailedException

[SerializableAttribute]
public class AuthorizationFailedException : Exception

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyErrorCode

Gets or sets the error code that describes the cause of authorization attempt failure.

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo object with the data needed to serialize the target object.(Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

NameDescription
System_CAPS_proteventSerializeObjectState

(Inherited from Exception.)

Windows Azure Service Bus supports only Full Trust code access security.

Typical causes of this exception include, but are not restricted to:

  • Failing to identify or retrieve the authentication token (or relay access token) from a message header.

  • The URI of the target service to authorize is in the incorrect format, such as with a hostname that does not conform to DNS naming conventions.

  • The token does not contain a claim that satisfies the action to be authorized with the service.

  • The SAML assertion has an incorrect user. Alternatively, the corresponding security token is missing or has a corrupted X.509 certificate.

For more information on setting authorization credentials, see .

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft