YAFLogo

Trist42
  • Trist42
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
10 years ago
Hi

I seem to be having some trouble with asp memberships finding users. if I use Membership.ValidateUser("admin", "#####") it returns false even though the details work. If I connect to the database via sql it shows everything as should be expected but with memberships it just doesn't seem to be finding anything.

Here's what I entered in the web.config


<membership defaultProvider="YafMembershipProvider">
      <providers>
        <clear/>
       <add connectionStringName="YAF" applicationName="MyYAF" name="YafMembershipProvider" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" type="System.Web.Security.SqlMembershipProvider"  enablePasswordRetrieval="false" enablePasswordReset="true" passwordFormat="Hashed" passwordStrengthRegularExpression="" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" maxInvalidPasswordAttempts="10" passwordAttemptWindow="1" />
      </providers>
    </membership>

<profile>
      <providers>
        <clear/>
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
      </providers>
    </profile>
    <roleManager enabled="false">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>

Does anyone have any ideas of what I might have missed?

Thanks.

Sponsor