2012-10-03 46 views
3

如果SQL Server數據庫排序規則是Turkish_CI_AS,我得到這個錯誤低於引起上功能SELECT查詢在SimpleMembershipProvider.cs類的「GetUserId」的方法。WebSecurity.CreateUserAndAccount SQL排序問題

SQL UPPER( '信息')不等於 「信息」 .ToUpperInvariant()在Turkish_CI_AS

SQL Server數據庫排序規則:Turkish_CI_AS

WebSecurity.CreateUserAndAccount("info", "123456"); 

異常詳細信息:System.Web程序.Security.MembershipCreateUserException:提供程序 遇到未知錯誤。

回答

1

你應該改變UserProfile.UserName列的DB從Turkish_CI_AS整理到Latin1_General_CI_AS或任何其他的時刻。所以,這一定是bug。