Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

Rate It (2)

Last post 12-03-2009 6:26 PM by markie1313. 44 replies.

Sort Posts:

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    06-30-2007, 11:55 PM
    • Member
      14 point Member
    • Websta4
    • Member since 03-07-2007, 12:18 PM
    • U.K.
    • Posts 44

     Sorted I had to put in a machine key

    I used this

    http://www.eggheadcafe.com/articles/GenerateMachineKey/GenerateMachineKey.aspx 

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    07-11-2007, 11:11 AM
    • Member
      2 point Member
    • viveknair
    • Member since 07-11-2007, 2:31 PM
    • Posts 1

    Hi

    Password incorrect or New Password invalid. New Password length minimum: 4. Non-alphanumeric characters required: 0.

    Hi guys i followed ur instruction but still i m getting this error!

    <membership>

    <providers>

    <remove name="AspNetSqlMembershipProvider"/>

    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="true" passwordFormat="Encrypted" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" passwordStrengthRegularExpression="" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"/>

    </providers>

    </membership>

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    07-10-2008, 8:28 AM
    • Member
      2 point Member
    • zahidrasool
    • Member since 07-10-2008, 12:20 PM
    • Posts 2

    Use this password Wc!@#$%Wink

    money back gurantee

    Zahid Rasool
    MCTS(ASP.net Web Application- SQL Server 2005)
  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    07-23-2008, 9:57 PM
    • Contributor
      3,429 point Contributor
    • rfurdzik
    • Member since 07-01-2002, 6:32 PM
    • zikbay.com
    • Posts 1,721

    Hey, are you joking? How did you possibly know what password he has???

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    07-23-2008, 9:59 PM
    • Contributor
      3,429 point Contributor
    • rfurdzik
    • Member since 07-01-2002, 6:32 PM
    • zikbay.com
    • Posts 1,721

    Oh, sorry! I realized you were proposing new password for him :) Yeah, that is a good one, very secure and also VERY EASY TO REMEMEBER :) Ha ha :)

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    09-30-2008, 11:41 AM
    • Member
      2 point Member
    • WHALERS1988
    • Member since 09-30-2008, 3:17 PM
    • Posts 2

    Ok I have install net frame 3.5, but also have the older versions still on the system.  Keep in mind I am new to this.  net frame ver 1.1, 2.0.  I do not see the machine.config in version 3.5 at all?    Plus there is no config sub director?  I also only see these files:  machine.config.comments, machine.config.default, or the machine.config XML file?  So which one do I choose? Now I can't even get the ASP.NET Config tool to come up in the web broswer.  Any help is appreciated.  Thanks...

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    10-13-2008, 6:03 AM
    • Member
      10 point Member
    • chrispar
    • Member since 12-26-2007, 2:54 AM
    • Posts 5

    @WHALERS1988

    .net 3.5 is an extension of .net 2.0. You can find your machine.config under .net 2.0 folder.

    usually C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG

     As for other, machine.config is the parent config for all the applications on your machine, so if you are copying the Membership section from machine.config to web.config, make sure:

    1. Use different name for the provider; or Use <clear /> before you add a new provider.
    2. Use defaultProvider property to set which provider to use.

    Cheers

    Chris Par

    http://chrispar.blogspot.com

    Filed under:
  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    10-24-2008, 4:28 AM
    • Member
      6 point Member
    • estheria
    • Member since 10-24-2008, 8:06 AM
    • Posts 3

    Hi... All the problem about the "password length minimum: 7. Non-alphanumeric characteristic required:1."

    is clear. Now, I have a problem about store procedure to save the data. How about it?

    Thanks before...

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    10-24-2008, 5:24 AM
    • Member
      10 point Member
    • chrispar
    • Member since 12-26-2007, 2:54 AM
    • Posts 5

    hi Estheria,

     Can you provide more information?

     1.) Have you properly configure your provider in web.config?

     2.) Did you use your own Custom MembershipProvider or the pre-built?

     3.) Any error code?

     regards,
    Chris Par

    http://chrispar.blogspot.com 

    Filed under:
  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    10-24-2008, 5:41 AM
    • Member
      6 point Member
    • estheria
    • Member since 10-24-2008, 8:06 AM
    • Posts 3

    Firstly, I'm sorry...

    I can understand, what the questions mean, because I'm the beginner.

    And I just follow other code about this create user, and may be there is missing.

    Thanks before...

    This is the layout of error complete :

    Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

    Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [SqlException (0x80131904): Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.]
       System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +95
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +82
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +346
       System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +3244
       System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +186
       System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1121
       System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +334
       System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +407
       System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +149
       System.Web.Util.SecUtility.CheckSchemaVersion(ProviderBase provider, SqlConnection connection, String[] features, String version, Int32& schemaVersionCheck) +855
       System.Web.Security.SqlMembershipProvider.CheckSchemaVersion(SqlConnection connection) +114
       System.Web.Security.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +3323
       System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +389
       System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +200
       System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +650
       System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +157
       System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +39
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +106
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +177
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3839
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    10-24-2008, 6:11 AM
    • Member
      10 point Member
    • chrispar
    • Member since 12-26-2007, 2:54 AM
    • Posts 5

    Firstly, the error clearly shows you that it couldnt find the stored proc in your database.

    So you need to check:-

    1. the stored proc in your database, whether it exists.
    2. if exists, check your database connection string in your web config

    Make sure you have properly installed the tables and stored proc using aspnet_regsql.exe under

    C:\Windows\Microsoft.NET\Framework\v2.0.50727

    Then.. what you need to do is.. register your provider. As a beginner to Membership Provider, I recommend you to use the default provider. So you have to put in the following piece of tags into your web.config under <system.web>

    <membership>

    <providers>

    <clear />

    <add name="SampleMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="YOUR_DB_CON" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />

    </providers>

    </membership>

     Then.. remember to create your ConnectionString which hold your membership tables and stored proc and replace it to the connectionStringName property of the provider. 

    Other than that, you need to change your Authentication section in your web.config

    <authentication mode="Forms" >

    <forms cookieless="AutoDetect" defaultUrl="~/default.aspx" loginUrl="~/login.aspx" />

    </authentication>

    to test it.. simply drag the create user wizard control and login control then it should work.

     Regards,
    Chris Par

    http://chrispar.blogspot.com

    Filed under:
  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    10-26-2008, 9:04 PM
    • Member
      6 point Member
    • estheria
    • Member since 10-24-2008, 8:06 AM
    • Posts 3

    Thanks...

    Now, I can login to the application.

    :)

  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    01-31-2009, 12:30 AM
    • Member
      6 point Member
    • footinface
    • Member since 04-07-2008, 4:17 PM
    • Posts 3

    best thread ever

  • Re: Create user web service

    06-03-2009, 8:18 AM
    • Member
      2 point Member
    • lyrix
    • Member since 05-19-2009, 6:35 PM
    • Posts 7
    Get lots of sleep and start coding
    Filed under:
  • Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )

    12-03-2009, 6:26 PM
    • Member
      57 point Member
    • markie1313
    • Member since 08-04-2003, 6:41 AM
    • Posts 12

    Yer killing me. I sat staring at this for about an hour, all the while thinking that nonalphanumeric meant a number...

    thanks for the help

Page 3 of 3 (45 items) < Previous 1 2 3