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

前端 未结 12 2038
走了就别回头了
走了就别回头了 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:17

    I've seen this error caused by the combination of good sized viewstate and over aggressive content-filtering devices/firewalls (especially when dealing with K-12 Educational institutions).

    We worked around it by storing Viewstate in SQL Server. Before going that route, I would recommend trying to limit your use of viewstate by not storing anything large in it and turning it off for all controls which do not need it.

    References for storing ViewState in SQL Server:
    MSDN - Overview of PageStatePersister
    ASP Alliance - Simple method to store viewstate in SQL Server
    Code Project - ViewState Provider Model

提交回复
热议问题