2010-05-10 75 views
-3

我收到的時候我驗證和SQL成員資格提供無效字符

this.provider.ValidateUser(用戶名,密碼)的用戶的錯誤;我使用的密碼是「freetrial」。我試圖修剪空間,但仍然沒有運氣!

和調用堆棧如下:

[FormatException: Invalid character in a Base-64 string.] 
    System.Convert.FromBase64String(String s) +0 
    System.Web.Security.MembershipProvider.EncodePassword(String pass, Int32 passwordFormat, String salt) +54 
    System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +169 
    System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42 
    System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +78 
+0

你能分享導致這個錯誤的代碼嗎? – AlG 2010-05-10 19:24:25

回答

-1

我得到了它working..it是內部遺留進口問題。