Base-64字符串中的字符无效

时间:2010-05-10 19:08:46

标签: .net base64

当我使用sql Membership provider

验证用户时,我收到此错误
  

this.provider.ValidateUser(userName,password);我使用的密码是“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

1 个答案:

答案 0 :(得分:-1)

我搞定了..这是内部遗留导入问题。