EPiServer.Security.UnifiedPrincipal.Current.UserData is replaced with?

Vote:
 
Hi! I am rewriting the code while upgrading from version 4.61 to CMS (5). In my old code there is this code snippet: string userEmail = EPiServer.Security.UnifiedPrincipal.Current.UserData.Email Now it is not working, but is UnifiedPrincipal.Current.UserData replaced with something else? Best regards Mats
#13388
Mar 11, 2008 12:55
Vote:
 
Yes, the PersonalizedData (aka UserData) is now replaced by the PersonalizationProvider. Check your web.config file to see which one you're using (probably the SQL Server personalization provider.) Time to read up on providers, luckily there is alot of information about this out there :-) /Steve
#19097
Mar 14, 2008 21:17
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.