Changing profile properties and Username programmatically
Add an Answer
Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
I have created a form in dnn 7.2 through which user will be able to change his username along with other custom profile properties.
When i call UserController.UpdateUser and UserController.ChangeUsername in sequence, an exception appears saying "Object reference not set to instance of an object".
Note that these functions work fine when i call only one of them i.e. UpdateUser or ChangeUsername.