ClientIsNotRegisteredException ClassNemiro.OAuth
The exception that is thrown when trying to access an unregistered OAuth client.
Inheritance Hierarchy

System Object
  System Exception
    Nemiro.OAuth ClientIsNotRegisteredException

Namespace: Nemiro.OAuth
Assembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax

[SerializableAttribute]
public class ClientIsNotRegisteredException : Exception

The ClientIsNotRegisteredException type exposes the following members.

Constructors

  NameDescription
Public methodClientIsNotRegisteredException
Initializes a new instance of the ClientIsNotRegisteredException class.
Top
Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectData (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Exception.)
Top
Properties

  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyHelpLink (Inherited from Exception.)
Protected propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage (Inherited from Exception.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top
Events

  NameDescription
Protected eventSerializeObjectState (Inherited from Exception.)
Top
Remarks

Use the RegisterClient(OAuthBase) for OAuth clients registration.

Examples

The following example illustrates a situation in which the ClientIsNotRegisteredException is thrown.

string url = OAuthWeb.GetAuthorizationUrl("facebook");
// ...

ClientIsNotRegisteredException

To solve the problem enough to register the client.

// facebook client registration
OAuthManager.RegisterClient
(
  new FacebookClient
  (
    "1435890426686808", 
    "c6057dfae399beee9e8dc46a4182e8fd"
  )
);

Enjoy!

string url = OAuthWeb.GetAuthorizationUrl("facebook");
// ...
See Also