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

时间:2021-09-06 18:30:10

I am getting this error when I am validating the user with sql membership provider

当我使用sql成员资格提供程序验证用户时,我收到此错误

this.provider.ValidateUser(userName, password); the password i have used is "freetrial". I tried trimming the spaces but still no luck!!!

this.provider.ValidateUser(userName,password);我使用的密码是“freetrial”。我试过修剪空间但仍然没有运气!

and the call stack is as follows:

并且调用堆栈如下:

[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 个解决方案

#1


-1  

I got it working..it is internal legacy import issue.

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

#1


-1  

I got it working..it is internal legacy import issue.

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