MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Way to cript the passwords 2  (Mono Support )

Viewed 36219 time(s), 11 post(s) 4/17/2012 1:13:51 PMby livcons
livcons

livcons

4/17/2012 1:13:51 PM
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
denis

denis

4/17/2012 4:33:14 PM
Although Jeremy's suggestion should work correctly and is very elegant (although there are alternative and more complicated approaches), our testing indicates that there are some breaking changes introduced in ASP.NET 4 that lead to the behavior you saw. We will get back with more information and an alternative/fix in a day or two.
This content has not been rated yet. 
7207 Reputation 956 Total posts
livcons

livcons

4/19/2012 2:04:49 PM
Thanks

I will wait for your input

Regrds
This content has not been rated yet. 
986 Reputation 121 Total posts
livcons

livcons

4/26/2012 8:38:41 PM
Hi !
Do you have any input on this issue?

Thank you,
Razvan
This content has not been rated yet. 
986 Reputation 121 Total posts
denis

denis

4/27/2012 11:13:38 AM
This has been fixed in the new version, we will send it to you it next week. As it turned out, there were no workarounds for the current version.
This content has not been rated yet. 
7207 Reputation 956 Total posts
livcons

livcons

4/29/2012 5:02:06 PM
Thank you Denis. Looking forward to get the solution.
--
Razvan
This content has not been rated yet. 
986 Reputation 121 Total posts
livcons

livcons

5/3/2012 9:12:06 AM
Hi !

Do you have an update on this request?

Thank you,
Razvan
This content has not been rated yet. 
986 Reputation 121 Total posts
khorvat

khorvat

5/3/2012 10:03:50 AM
Hi,

yes we will provide you with the new version today.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

5/3/2012 9:32:33 PM
Hi,

 we have sent you the links to new MonoX version, let us know if you need anything else.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
livcons

livcons

5/4/2012 3:07:11 PM
Hello

In order to fix it I had to use the MonoSoftware.Web.dll from the last version (4.7.40.3493). We are using monox version v4.5.3200.40 .
Are we going to have problems because of this mix?

Regards

This content has not been rated yet. 
986 Reputation 121 Total posts
1 2