Aug 26, 2015
Jun 09, 2016
CMS Core
Closed, Fixed and tested
Steps to reproduce
Expected Save change successfully
Actual Can't save change due to the error
Workaround: This is a bug in Microsoft ASP.NET Universal Providers. This only happens where there are no other items in the profile. So add at least one item to the profile, like assigning e-mail to a Windows user.
From log file:
2015-06-04 16:11:33,449 [25] ERROR EPiServer.UI.Edit.UserMembership: 20.1.1 Unexpected Membership Provider Error. This may be caused by invalid combination of Role and Membership providers.:
System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.
at System.Data.Entity.Internal.InternalContext.SaveChanges()
at System.Web.Providers.DefaultProfileProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection collection)
at System.Configuration.SettingsBase.SaveCore()
at System.Configuration.SettingsBase.Save()
at System.Web.Profile.ProfileBase.SaveWithAssert()
at System.Web.Profile.ProfileBase.Save()
at EPiServer.UI.Edit.UserMembership.SaveButton_Click(Object sender, EventArgs e)