Hello
In a previous post (that I can not edit). You toald me how to store the passwords.
http://www.mono-software.com/Mono/Pages/Discussion/dtopic/OuYjAq_PGUG8kaAyALZpXg/Way-to-crypt-the-passwords/
The problem that I am facing now is that when I try to edit a user I get th error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData) at System.Web.Security.MembershipAdapter.EncryptOrDecryptData(Boolean encrypt, Byte[] buffer, Boolean useLegacyMode) at System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType 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 MonoSoftware.Web.MembershipProviderExtension.DecodePassword(MembershipProvider provider, String password) at MonoSoftware.MonoX.Admin.UserManager.gridViewBox_Edit(Guid entityId, CancelEventArgs e) in C:\Projects\Compendiu\Portal\MonoX\Admin\UserManager.aspx.cs:line 416 at MonoSoftware.MonoX.GridViewEditBox.OnEdit(Guid entityId, CancelEventArgs e) in C:\Projects\Compendiu\Portal\MonoX\Admin\controls\GridViewEditBox.ascx.cs:line 1144 at MonoSoftware.MonoX.GridViewEditBox.btnEdit_Click(Object sender, EventArgs e) in C:\Projects\Compendiu\Portal\MonoX\Admin\controls\GridViewEditBox.ascx.cs:line 1535
System.Web.HttpException (0x80004005): Unable to validate data. at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData) at System.Web.Security.MembershipAdapter.EncryptOrDecryptData(Boolean encrypt, Byte[] buffer, Boolean useLegacyMode) at System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword)
Regards
This content has not been rated yet.
986
Reputation
121
Total posts