Recover password med Access database
Jeg har brugt en access database til at gemme login's i ved hjælp af asp.net 2.0 funktionaliteten.Det virker fint, bortset fra at recover password er slået fra. Slår man den til igen via config filen, da får man en allerede en fejl ved login.
"Provider cannot retrieve hashed password"
Ved ikke hvordan man får den instillet rigtigt. Her er udsnittet fra min webconfig fil der vedrører accessprovideren.
<system.web>
<!-- start på web config fra access login -->
<authentication mode="Forms">
<forms loginUrl="mylogin.aspx" defaultUrl="Login.aspx" />
</authentication>
<membership defaultProvider="AccessMembershipProvider">
<providers>
<clear/>
<add name="AccessMembershipProvider"
type="Samples.AccessProviders.AccessMembershipProvider, AccessProviders"
connectionStringName="AccessFileName"
enablePasswordRetrieval="true"
enablePasswordReset="false"
requiresUniqueEmail="false"
requiresQuestionAndAnswer="true"
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
applicationName="SampleSite"
hashAlgorithmType="SHA1"
passwordFormat="Hashed"/>
</providers>
</membership>
<roleManager enabled="true" defaultProvider="AccessRoleProvider" cacheRolesInCookie="true" cookieName=".ASPXROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All">
<providers>
<add name="AccessRoleProvider"
type="Samples.AccessProviders.AccessRoleProvider, AccessProviders"
connectionStringName="AccessFileName"
applicationName="SampleSite"/>
</providers>
</roleManager>
<profile enabled="true" defaultProvider="AccessProfileProvider">
<providers>
<add name="AccessProfileProvider"
type="Samples.AccessProviders.AccessProfileProvider, AccessProviders"
connectionStringName="AccessFileName"
applicationName="SampleSite"
description="Stores and retrieves profile data from an AccessProviders database."/>
</providers>
<properties>
<add name="FriendlyName" type="string" allowAnonymous="true" serializeAs="String"/>
<add name="Height" type="int" allowAnonymous="true" serializeAs="String"/>
<add name="Weight" type="int" allowAnonymous="true" serializeAs="Xml"/>
</properties>
</profile>
<anonymousIdentification enabled="true" cookieName=".ASPXANONYMOUS" cookieTimeout="100000" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="None" domain=""/>
<webParts>
<personalization defaultProvider="AccessPersonalizationProvider">
<providers>
<add name="AccessPersonalizationProvider"
type="Samples.AccessProviders.AccessPersonalizationProvider, AccessProviders"
connectionStringName="AccessFileName"
applicationName="SampleSite"/>
</providers>
</personalization>
</webParts>
<!--
<trust level="Medium"/>
-->
<!--
<compilation debug="true"/>
-->
<!-- slut på web config fra access login -->