views:

96

answers:

0

I've successfully implemented and configured the AuthenticationService and ProfileService on MyWebsiteA. I created MyWebsiteB and added service references to the AuthenticationService and ProfileService on MyWebsiteA. On one of my pages I call the Login() and it returns true, however If I then try the ProfileService.GetPropertiesForCurrentUser method is moans that I need to log on first, but I did?

Heres the Code...

protected void Page_Load(object sender, EventArgs e) { ServiceReferenceAuth.AuthenticationServiceClient clientAuth = new ServiceReferenceAuth.AuthenticationServiceClient(); ServiceReferenceProfile.ProfileServiceClient clientProfile = new ServiceReferenceProfile.ProfileServiceClient();

    if (clientAuth.Login(Username.Text, Password.Text, "", RememberMe.Checked))
    {
        clientProfile.GetAllPropertiesForCurrentUser(true);
    }
    else
    {
        Response.Write("Oops! Try Again!");
    }

}

related questions