Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Error retrieving password

Error retrieving password

Scheduled Pinned Locked Moved ASP.NET
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cyberpulse
    wrote on last edited by
    #1

    Hi, I have an application in which I am trying to retrieve a user's password. The code is as follows:- 1 MembershipUser resetPass = MyUsers[UserInfo.Rows[e.NewSelectedIndex].Cells[0].Text]; 2 string password = resetPass.GetPassword(); However on execution I am hit with the following error:- This Membership Provider has not been configured to support password retrieval. I have tried the following steps to resolve this issue but to no avail:- In the WebConfig in I have modified the <Membership></Membership> tag to reflect the following:- <membership> <providers> <clear/> <add name=”AspNetSqlMembershipProvider” connectionStringName=”247Db” minRequiredPasswordLength=”4″ minRequiredNonalphanumericCharacters=”0″ type=”System.Web.Security.SqlMembershipProvider” applicationName=”/247App” enablePasswordRetrieval=”true” requiresQuestionAndAnswer=”false” passwordFormat=”Encrypted” requiresUniqueEmail=”false” /> </providers> </membership> I also added a machineKey to support the setup above as follows:- 1 <machineKey validationKey="11D7D8362528F04266ACACDDEA7..." 2 decryptionKey=”4C0…” 3 validation=”SHA1″/> However, now i get the following error:- "Hashed passwords cannot be encoded". I am guessing this is because the passwordFormat property in the web.config was "Hashed" befrore I changed it to Encrypted. Nevertheless, what should I do ? Thanks

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups