I'm working on a WCF service that requires Membership and Profile access.
I got the Membership stuff working by using System.Web.Security.Membership 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,
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
txtFirstName.Text = Profile.FirstName;
txtLastName.Text = Profile.LastName;
int foo = Profile.Age;
}
}
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.
can someone please point me to the write direction on how to access profile details?