M
mike
if (User.Identity.IsAuthenticated)
{
MembershipUser mu =
System.Web.Security.Membership.GetUser(User.Identity.Name);
mu.Email = mu.UserName;
Membership.UpdateUser(mu);
//some more code here
}
When this code runs, I get an error as follows:
Compiler Error Message: CS0117: 'Membership' does not contain a
definition for 'UpdateUser'
What would cause this? I was getting the same error for the GetUser
method as well but that went away without doing anything except a
couple of saves / rebuilds. I cannot get the other message to go away
by doing this (yet).
Mike
{
MembershipUser mu =
System.Web.Security.Membership.GetUser(User.Identity.Name);
mu.Email = mu.UserName;
Membership.UpdateUser(mu);
//some more code here
}
When this code runs, I get an error as follows:
Compiler Error Message: CS0117: 'Membership' does not contain a
definition for 'UpdateUser'
What would cause this? I was getting the same error for the GetUser
method as well but that went away without doing anything except a
couple of saves / rebuilds. I cannot get the other message to go away
by doing this (yet).
Mike