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 47327 time(s), 11 post(s) 17.04.2012 13:13:51by livcons
livcons

livcons

17.04.2012 13:13:51
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
Dieser Inhalt wurde noch nicht bewertet. 
986 Reputation 121 Total posts
denis

denis

17.04.2012 16:33:14
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.
Dieser Inhalt wurde noch nicht bewertet. 
7207 Reputation 956 Total posts
livcons

livcons

19.04.2012 14:04:49
Thanks

I will wait for your input

Regrds
Dieser Inhalt wurde noch nicht bewertet. 
986 Reputation 121 Total posts
livcons

livcons

26.04.2012 20:38:41
Hi !
Do you have any input on this issue?

Thank you,
Razvan
Dieser Inhalt wurde noch nicht bewertet. 
986 Reputation 121 Total posts
denis

denis

27.04.2012 11:13:38
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.
Dieser Inhalt wurde noch nicht bewertet. 
7207 Reputation 956 Total posts
livcons

livcons

29.04.2012 17:02:06
Thank you Denis. Looking forward to get the solution.
--
Razvan
Dieser Inhalt wurde noch nicht bewertet. 
986 Reputation 121 Total posts
livcons

livcons

03.05.2012 09:12:06
Hi !

Do you have an update on this request?

Thank you,
Razvan
Dieser Inhalt wurde noch nicht bewertet. 
986 Reputation 121 Total posts
khorvat

khorvat

03.05.2012 10:03:50
Hi,

yes we will provide you with the new version today.

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

03.05.2012 21:32:33
Hi,

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

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
livcons

livcons

04.05.2012 15:07:11
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

Dieser Inhalt wurde noch nicht bewertet. 
986 Reputation 121 Total posts
1 2