MaxInvalidPasswordAttempts="3"

Last post 08-08-2008 1:33 PM by ajit.aspdotnet. 2 replies.

Sort Posts:

  • MaxInvalidPasswordAttempts="3"

    08-08-2008, 3:04 AM

     hi friends,

    I am bit new in asp.net.

    I would really appreciate your help.

    "I have to give maximum invalid password attempts as "5" . I am using Asp.net conifiguration for creating users."

    So in my Web.config file i wrote the following code

    <membership defaultProvider="abcProvider">
                <providers>
                    <add  connectionStringName="connectionstring" applicationName="/abc" MaxInvalidPasswordAttempts="3" PasswordAttemptWindow="30"   name="testMembershipProvider" type="System.Web.Security.SqlMembershipProvider"/>
                </providers>
            </membership>

     

    now the thing is from the time i have added this  "MaxInvalidPasswordAttempts="3" PasswordAttemptWindow="30"  in web.config file... my project is not running. if i remove this then its working fine...

    please help me out

  • Re: MaxInvalidPasswordAttempts="3"

    08-08-2008, 9:35 AM
    Answer
    • Member
      73 point Member
    • kooshal
    • Member since 06-26-2007, 7:27 PM
    • Posts 26

    You need to use passwordAttemptWindow and maxInvalidPasswordAttempts instead of  MaxInvalidPasswordAttempts and PasswordAttemptWindow.

     

    Note: Attribute names are sensitive in web.config!

     

    see http://msdn.microsoft.com/en-us/library/ms998347.aspx

  • Re: MaxInvalidPasswordAttempts="3"

    08-08-2008, 1:33 PM

     thank you very much kooshal..

     

    it worked....... :) 

Page 1 of 1 (3 items)