title: ASP.net Membership and profiles in WCF
body: <p>I'm working on a WCF service that requires Membership and Profile access.</p>
  
  <p>I got the Membership stuff working by using <a href="http://msdn.microsoft.com/en-us/library/system.web.security.membership_members.aspx" rel="nofollow noreferrer">System.Web.Security.Membership</a> class and calling CreateUser() and ValidateUser() but i can't get the Profile to work. I don't even know what class to call, all the samples that i have seen are for ASP.net like the one i posted below,</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if (!Page.IsPostBack)
      {
          txtFirstName.Text = Profile.FirstName;
          txtLastName.Text = Profile.LastName;
          int foo = Profile.Age;
      }
  }
  </code></pre>
  
  <p>when i try that in my WCF endpoint the Profile object isn't available and I can't find any other way to access it.  </p>
  
  <p>can someone please point me to the write direction on how to access profile details?</p>