title: Help with Membership.GetUser ASP.NET C#
body: <p>I am given an error when I try to use Membership.GetUser. Using intellisense the .GetUser() just isn't there....   .AddMember() is. I'm already using System.Web.Security;</p>
  
  <p>Neither of the two below are working</p>
  
  <pre><code>   protected void Page_Load(object sender, EventArgs e)
      {
  
          string userName = User.Identity.Name;
  
          // Lets get the user's id
          Guid userId = (Guid)Membership.GetUser(userName).ProviderUserKey;
  
          MembershipUser user = Membership.GetUser(userName);
      }
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>The type or namespace name 'GetUser' does not exist in the namespace (are you missing an assembly reference?)
  </code></pre>