How to enable password retrieval?

Jul 23, 2008 at 12:02 AM
My application currently returns an Exception "This membership Provider has not been configured to support password retrieval"

Is this even possible?  If so any clues how? 

Thanks,

Aug 16, 2008 at 8:20 AM
首先在web.config的system.web节中配置machineKey:
<system.web>
<machineKey validationKey="590FBF83DE4DB1034483D319AAE5C925CB6175D8C4E23FF8AB7E51CF7B713F7E21B0A0CC39CFA126E092655752E36DE68A2B7549D59330164B9531A32004A170" decryptionKey="5EF9212A6C456ABA7526895BB6BF5145743C12D9ACE4927C9691BA869B806DA0" validation="SHA1" decryption="AES"/>
<system.web>

然后配置Mebership:
        <membership defaultProvider="DefaultProvider">
            <providers>
                <add connectionStringName="MySqlServer" applicationName="NajiaUserHost" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Encrypted" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" name="DefaultProvider" autogenerateschema="true" writeExceptionsToEventLog="true" type="MySql.Web.Security.MySQLMembershipProvider"/>
            </providers>
        </membership>