Page view counter

css friendly adapters + createuserwizard + custom membership provider = trouble?

Last post 06-08-2007 1:52 PM by KenA. 4 replies.

Sort Posts:

  • css friendly adapters + createuserwizard + custom membership provider = trouble?

    06-04-2007, 10:32 AM
    • Loading...
    • KenA
    • Joined on 04-02-2003, 1:43 AM
    • Brazil
    • Posts 157
    • Points 562

    i believe the combination of [css friendly adapters + createuserwizard + custom membership provider] is the cause of the trouble i'm having ...
    i was testing my custom membership provider's createuser method and i discovered that when i use it with the createuserwizard it actually call the
    method twice, thus saving the user 2 times ... for this issue i explicitly set the user table in the database with the username field to allow
    duplicate names.

    when i turn off the css adaptor by commenting it in the app_browsers folder: CSSFriendlyAdapters.browser file, then everything works just fine.

    does anyone else experienced such a behaviour?

    »»» KenA
  • Re: css friendly adapters + createuserwizard + custom membership provider = trouble?

    06-04-2007, 10:57 AM
    • Loading...
    • steve harman
    • Joined on 07-10-2006, 3:32 AM
    • Posts 38
    • Points 128

    You might want to checkout the new home of the CSS Adapters on Code Plex. There have already been a ton of fixes and some new features added to the code base, and you can get always get the latest bits via the download section.

  • Re: css friendly adapters + createuserwizard + custom membership provider = trouble?

    06-05-2007, 9:55 PM
    • Loading...
    • Russ Helfand
    • Joined on 09-14-2005, 6:22 PM
    • Groovybits.com
    • Posts 741
    • Points 3,298
    Russ Helfand
    Groovybits.com
  • Re: css friendly adapters + createuserwizard + custom membership provider = trouble?

    06-08-2007, 11:01 AM
    • Loading...
    • tuhin
    • Joined on 04-04-2007, 5:36 PM
    • Posts 10
    • Points 30

    I am having a similar problem with the same settings. I am trying to customize the login form to not show up the secret question and answer field. But the

    settings in the web.config does not seem to have any effect.  Has anyone overcome this problem? Thanks

     

    <add name="MySqlMembershipProvider"

    connectionStringName="MyLocalSQLServer"

    applicationName="MyAppName"

    passwordAttemptWindow="10"

    enablePasswordRetrieval="false" enablePasswordReset="true"

    requiresQuestionAndAnswer="false" requiresUniqueEmail="true"

    passwordFormat="Hashed" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"

    passwordStrengthRegularExpression=""

    type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

  • Re: css friendly adapters + createuserwizard + custom membership provider = trouble?

    06-08-2007, 1:52 PM
    • Loading...
    • KenA
    • Joined on 04-02-2003, 1:43 AM
    • Brazil
    • Posts 157
    • Points 562

     hi tuhin, i believe your membership settings in the web.config is not correct ... try to make a comparison to the one i'm using:

    1    <membership>
    2 <providers>
    3 <clear/>
    4 <add connectionStringName="cnnStr"
    5 name="AspNetSqlMembershipProvider"
    6 type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    7 enablePasswordRetrieval="false"
    8 enablePasswordReset="true"
    9 requiresQuestionAndAnswer="false"
    10 applicationName="/VS2005.WebUI"
    11 maxInvalidPasswordAttempts="3"
    12 passwordAttemptWindow="10"
    13 requiresUniqueEmail="true"
    14 passwordFormat="Hashed"
    15 minRequiredPasswordLength="5"
    16 minRequiredNonalphanumericCharacters="1"
    17 passwordStrengthRegularExpression=""
    18 />
    19 </providers>
    20 </membership>
     the config above is not for a custom membership, but for a default AspNetSqlMembershipProvider, since in your case the type attribute is also set to System.Web.Security.SqlMembershipProvider i believe you're using the default membeship provider, right?
    »»» KenA
Page 1 of 1 (5 items)