Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8905

CodeNameNotUniqueException: The user with code name

$
0
0
Hi, Kentico version: v11.0.40Issue close to what we got but not exactly (as ours is not about roles), and in version 7: https://devnet.kentico.com/questions/codenamenotuniqueexception-after-applying-hotfix-kentico-7We put a new website in A/B testing and now that we have thousands of people using it we start to see some errors from Kentico. Some customers seems to not be able to login as they keep getting an error again and again while trying.It happens when we use this method: AuthenticationHelper.AuthenticateUser(username, password, SiteContext.CurrentSiteName, true);http://devnet.kentico.com/docs/11_0/api/html/M_CMS_Membership_AuthenticationHelper_AuthenticateUser_1.htmThe exception: CMS.DataEngine.CodeNameNotUniqueException: The user with code name 'useremail@gmail.com' already exists. at CMS.DataEngine.AbstractInfoProvider`3.SetInfo(TInfo info) at CMS.Membership.UserInfoProvider.SetUserInfoInternal(UserInfo user) at CMS.Membership.AuthenticationHelper.EnsureExternalUser(UserInfo uInfo) at CMS.Membership.AuthenticationHelper.AuthenticateUser(String userName, String password, String siteName, Boolean login, AuthenticationSourceEnum source) It is hard to replicate as it seems pretty random and to be a temporary thing, just long enough to make the customer leave the website.Does anyone already got this kind of issue, or have information related to this issue ?Thanks.

Viewing all articles
Browse latest Browse all 8905

Trending Articles