Last post Jan 08, 2007 04:29 AM by mattgroves
May 18, 2006 05:05 PM|Mike Hildner|LINK
I'd like to use passwordFormat="Encrypted", but am receiving the below exception when I try to create a new user. All I did was change from "Hashed" to "Encrypted". I assume I'm missing some configuration. Can anyone explain how to get this working or point
me to a resource that explains it?
Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object arguments, SignatureStruct& sig,
MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object
obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at System.Web.Administration.WebAdminMembershipProvider.CallWebAdminMembershipProviderHelperMethodOutParams(String methodName, Object parameters, Type paramTypes) at System.Web.Administration.WebAdminMembershipProvider.CreateUser(String username, String
password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) at System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() at System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs
e) at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object source, EventArgs
args) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
May 18, 2006 08:00 PM|MorningZ|LINK
I assume I'm missing some configuration.
Can you show what you currently have in your Web.Config for that section?
May 18, 2006 08:25 PM|Mike Hildner|LINK
Sure, thanks for taking a look. I fiddled with some other attributes.
May 18, 2006 08:57 PM|MorningZ|LINK
All right, exactly what I wanted to see..... compare it to a working Web.Config i have with fully working retrievable passwords
So what i'd suggest, and this is only because i can tell you the above works, is replace <clear /> with the <remove name="...." />
And another thing I remember is that you have to set a "validationKey" and "decryptionKey" in Web.Config as well (sorry this block won't work, i had to change some of the values so i am not posting our encryption keys). This node is a child of <system.web>
I used some "ADAM generator" to generate those keys
Oooohh.. i still had bookarked the blog post where i learned that
the link to the program i used is in the very last comment
May 18, 2006 09:15 PM|Mike Hildner|LINK
Thanks MorningZ, you rock. Tthat did the trick. Adding the machineKey, that is. Doesn't seem to make a difference whether I use "clear" or "remove name" - either way works.
Jun 28, 2006 02:18 PM|juliaw|LINK
I havehad the same problem, followed what you have done, but when I use the <asp:passwordrecovery > tag my email still contains the password encrypted - what am I doing wrong?
I would appreciate it is anyone could help
my web.config file, along with other stuff, contains this:
System.Web, Version=126.96.36.199, Culture=neutral,
Thanks in anticipation
Jul 06, 2006 08:32 PM|Botnet|LINK
I don't know if this help, but it worked for me. If the user already exist the information about that user is stored in the default format, hashed. You must delete the user and create it again.
Jan 08, 2007 04:29 AM|mattgroves|LINK
This post helped solved the problem! =o)