title: GoogleWebAuthorizationBroker.AuthorizeAsync Hangs
body: <p>Our website needs to upload videos to youtube from the code behind (asp.net mvc application). I'm trying to get the google credentials, but when i call the AuthorizeAsync, the application just hangs. I've looked all over for a solution and none seem to help out.  I've already searched for the obvious on google and stack overflow. most of what i found mentioned that the application might not have access the the appdata folder, so i tried changing the folder to be in the c drive, d drive and in the actual inetpub location. i tested and found i was able to have the application write to those locations.</p>
  
  <p>to be more specific, the user is our admin, customers upload videos to us, and the admin approves them. when the admin approves them, it is posted on our youtube account. the admin should not have to do anything but click the approve button.</p>
  
  <p>To make this an actual question, what can i do to get past the AuthorizeAsync? Let me know if you need more info</p>
  
  <pre><code>        UserCredential credential;
          GoogleWebAuthorizationBroker.Folder = "YouTube.Auth.Store";
          using (var stream = new FileStream(CredentialsPath, FileMode.Open,
                               FileAccess.Read))
          {
              credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
                  GoogleClientSecrets.Load(stream).Secrets,
                  // This OAuth 2.0 access scope allows an application to upload files to the
                  // authenticated user's YouTube channel, but doesn't allow other types of access.
                  new[] { YouTubeService.Scope.YoutubeUpload },
                  "user",
                  CancellationToken.None,
                  new FileDataStore("YouTube.Auth.Store")
              ).Result;
          }
  </code></pre>