如果Sql Server数据库归类是 Turkish_CI_AS ,我在下面得到该错误导致SELECT Query中的UPPER函数" GetUserId" SimpleMembershipProvider.cs 类的方法。
SQL UPPER(' info')不等于土耳其语_CI_AS中的" info" .ToUpperInvariant()
Sql Server数据库整理:Turkish_CI_AS
WebSecurity.CreateUserAndAccount("info", "123456");
异常详细信息:System.Web.Security.MembershipCreateUserException:Provider 遇到了未知错误。
答案 0 :(得分:1)
您应该将DB中的UserProfile.UserName列的排序规则从Turkish_CI_AS更改为Latin1_General_CI_AS或其他任何其他目标。所以,这一定是bug。