Why current user is not updating?

Sourav Dutta asked on January 15, 2015 14:55

Cant able to update the current user? why? CV is just a string field,not only cv,if I set firstname or lastname,still cant able to update it.Why?

UserInfo currentUser = UserInfoProvider.GetUserInfo(CurrentUser.UserID);
currentUser.SetValue("CV", file);
currentUser.Update();

Recent Answers


Joshua Adams answered on January 15, 2015 15:03

Can you verify that the user obj isn't null and that the field CV exists on the user table?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 15, 2015 15:08

When you add custom fields, I believe they all go to the UserSettings object. Have you tried currentUser.UserSettings.SetValue("CV", file");

1 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on January 15, 2015 16:58

Try UserInfoProvider.SetUserInfo(currentUser);

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.