title: DotNetOpenAuth Twitter Consume StartSignIn
body: <p>Trying to use the StartSignInWithTwitter method.  When the method is called soon after an exception is thrown.  This is using the latest version of DotNetOpenAuth.  Would it have anything to do with me developing and running with locally? (VS2010)  Is this how I should be doing authentication in the first place?  I do see some different ways in the Samples pack that is included with the source.</p>
  
  <p>{"The remote server returned an error: (401) Unauthorized."}</p>
  
  <p>My code looks like below:</p>
  
  <pre><code>    public void TwitAuthInit()
      {
          TwitterConsumer.StartSignInWithTwitter(false).Send();
      }
  
      public ActionResult TwitAuth()
      {
          if (TwitterConsumer.IsTwitterConsumerConfigured)
          {
              string screenName;
              int userId;
              if (TwitterConsumer.TryFinishSignInWithTwitter(out screenName, out userId))
              {
  
                  FormsAuthentication.SetAuthCookie(screenName, false);
                  return RedirectToAction("Home", "Index");
              }
  
          }
  
          return View();
      }
  </code></pre>