Unable to get the Password using CrmMembershipProvider (Custom Membership) after Authenticating User without Login Control RRS feed

  • Question

  • HI,

    I've implemented the Portal Website and using CRM 2011 as Backend Database. I've used the Custom Membership Provider i.e. CrmMembershipProvider It allows me to retrieve the Password when the User Login using Login Control but it won't allow me to retrieve password when I am enforcing automatic login when a new User Registers and Create new profile using our website. It is throwing error Parameter 's' cannot be null.

    To Retrieve the Password, I am using MembeshipUser.GetPassword() method, Below is the config file setting

    <membership defaultProvider="Xrm">
            <add name="Xrm" type="Adxstudio.Xrm.Web.Security.CrmContactMembershipProvider, Adxstudio.Xrm" enablePasswordReset="true" enablePasswordRetrieval="true" requiresQuestionAndAnswer="false" passwordFormat="Encrypted" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonAlphanumericCharacters="0" passwordAttemptWindow="10"/>      



    Thursday, January 9, 2014 7:11 AM


  • I found the answer..

    While authenticating user without Login Control the Membership.ValidateUser method must be called in the Register Profile page.

    Thursday, January 9, 2014 8:18 AM