MembershipCreateUserException - The username supplied is invalid

前端 未结 6 1397
情书的邮戳
情书的邮戳 2021-02-09 09:43

On this line i am getting an exception -

OAuthWebSecurity.CreateOrUpdateAccount(provider, providerUserId, model.UserName);

System.Web.Security

6条回答
  •  抹茶落季
    2021-02-09 10:30

    I had the same problem. I solved it by specifying the correct connection string in SimpleMembershipInitializer and UsersContext class. I'm using ASP.NET MVC4

提交回复
热议问题