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

前端 未结 12 2059
走了就别回头了
走了就别回头了 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条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 03:32

    As Jon Skeet said, the string must be multiple of 4 bytes. But I was still getting the error.

    At least it got removed in debug mode. Put a break point on Convert.FromBase64String() then step through the code. Miraculously, the error disappeared for me :) It is probably related to View states and similar other issues as others have reported.

提交回复
热议问题