private void ObtainAuthorisationAsync() { string clientId = ConfigurationManager.AppSettings["ClientId"]; string scope = ConfigurationManager.AppSettings["Scope"]; if (authResult == null) { OAuthClient client = new OAuthClient(clientId); client.AuthoriseCompleted += new OAuthEvents.AuthoriseCompletedHandler(client_AuthoriseCompleted); try { //If you have problems connecting try setting the IWebProxy //in the call to client.Authorise below. string authId = client.BeginAuthorise(new AuthorisationInfo() { Scope = scope }); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }