I've got a claims based SharePoint 2010 environment configured. I'm able to register new users, login etc. I'm now trying to get more detail from the current logged in user and for this, I understand, I need to use the MembershipUser, Membership
and MembershipUserCollection classes.
When I instantiate the MembershipUserCollection class and traverse the users, all works fine, but as soon as I try to create an object from the currently logged in users, I get an error noting "method or object not implemented".
Here is my code:
MembershipUser user = Membership.GetUser(strCurrentIdentity); <!-- Exception on this line.
strCurrentUser = user.UserName;
ps. Let's assume I have trim the "strCurrentIdentity" down to only have the username portion in it.
View Complete Post