This project is read-only.

Object Reference not set to an instance of an object

Topics: Developer Forum
Apr 15, 2007 at 8:57 AM
If RequiresQuestionAndAnswer is false, creating a new user tries to call EncodePassword with a null passwordAnswer thus throwing everybody's favorite "object reference not set to an instance of an object"

Changing line 306 of NHibernateMembershipProvider.cs to this seems to help:
user.PasswordAnswer = EncodePassword(passwordAnswer, machineKey.ValidationKey);
Apr 15, 2007 at 5:22 PM
Thanks! Good catch. I will make the update in the code. Cheers.