What causing this “Invalid length for a Base-64 char array”

前端 未结 12 2048
走了就别回头了
走了就别回头了 2020-11-28 02:56

I have very little to go on here. I can\'t reproduce this locally, but when users get the error I get an automatic email exception notification:



        
12条回答
  •  猫巷女王i
    2020-11-28 03:15

    During initial testing for Membership.ValidateUser with a SqlMembershipProvider, I use a hash (SHA1) algorithm combined with a salt, and, if I changed the salt length to a length not divisible by four, I received this error.

    I have not tried any of the fixes above, but if the salt is being altered, this may help someone pinpoint that as the source of this particular error.

提交回复
热议问题