Failed to retrieve profile

I don't see it anymore, after i got the UpmProvider to run i get problems after problems with it. First I had to change the Account Status Type ti SITEITEM and then I had the problem that the field Last_Lockedout_date was not found. I realliced that quite a few more attributs were needed and that i have to insert them into my prfile schema as well as in the SQL Database. Because i got the loging process from the StarterSite i took the Profile mapping from there as well, uptated my prfoile catalog with that and mi Profiels Database. But now i get the errormessage: Failed to retrieve profile.
The error occurs as soon as I want to read the UserId from CommerceContext. Funny is that except the UserId and UserProfile all atrributes in CommerceContext.Curret are sett.

How can i see wht the exact problem is It has to be an wrong mapping as I think, or is there another possibility why the loading proceess fails


Answer this question

Failed to retrieve profile

  • ccote

    It sounds like you are using logon_name as your profile key. By default Starter Site uses email_address as the profile key and if you copied the setup exactly you will likely have problems.

    The short answer is you need to set the userIdKey attribute of the userProfile element in web.config to "GeneralInfo.logon_name" (or whatever you are using) and add the logonNameProperty attribute to the <add> element for the UpmMembershipProvider and set its value to "GeneralInfo.logon_name."

    The long answer is to follow the applicable steps of the Starter Site Custom Profiles Tutorial in the Starter Site documentation. http://go.microsoft.com/fwlink/ LinkId=76190


  • Failed to retrieve profile