MultiValue profile properties

For some strange reason after upgrading to to commerce server SP1, the UpmMembership provider can no longer reset MultiValueProfile properties such as the LogonErrorDates. It is able to append to the array just fine but is unable to blank the array out. Even after a user has typed in their correct password and is successfully logged into the site, the LogonErrorDates remains full even though it was supposed to be blanked out. Everything worked fine pre sp1, and yes we are using the UPM membership provider that shipped with Commerce Server. If someone else could try to replicate this or tell me what I am doing wrong I would appreciate it.

Thanks, Daniel

[668 byte] By [NicaoG] at [2008-1-8]
# 1
The problem is that you can't set a Profile["ProfileSystem.multivalueproperty"] = null or object[]{} to represent an empty array. When you try to set it to null it appears to work but even after a Profile.Update() the profile remains unchanged and the array remains full. If you try to set it to an empty array the MembershipProvider errors out and tells you that you have sent invalid data. The UpmMembershipProvider tries to set the logon_error_dates = null in its EraseFailedLoginHistory method. That's why the logon error dates field is unable to be nulled out. I'm pretty sure that this worked fine pre SP1. It looks like Microsoft broke their own UpmMembershipProvider in SP1. If we can get a hotfix for this it would be great as I am waiting on this to launch our site.

Thanks, Daniel

NicaoG at 2007-10-2 > top of Msdn Tech,Commerce Server,Commerce Server 2007...