久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

導致此“Base-64 字符數組的長度無效"的原因是

What causing this quot;Invalid length for a Base-64 char arrayquot;(導致此“Base-64 字符數組的長度無效的原因是什么?)
本文介紹了導致此“Base-64 字符數組的長度無效"的原因是什么?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在這里幾乎沒有什么可做的.我無法在本地重現此內容,但是當用戶收到錯誤消息時,我會收到自動電子郵件異常通知:

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:

Invalid length for a Base-64 char array.

  at System.Convert.FromBase64String(String s)
  at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
  at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState)
  at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState)
  at System.Web.UI.HiddenFieldPageStatePersister.Load()

我傾向于認為分配給視圖狀態的數據存在問題.例如:

I'm inclined to think there is a problem with data that is being assigned to viewstate. For example:

List<int> SelectedActionIDList = GetSelectedActionIDList();
ViewState["_SelectedActionIDList"] = SelectedActionIDList;

如果不能在本地重現錯誤,就很難猜測錯誤的來源.

It's difficult to guess the source of the error without being able to reproduce the error locally.

如果有人遇到過這個錯誤,我真的很想知道你發現了什么.

If anyone has had any experience with this error, I would really like to know what you found out.

推薦答案

我已經看到這個錯誤是由合適的視圖狀態和過度激進的內容過濾設備/防火墻(尤其是在與 K-12 教育機構打交道時)引起的).

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).

我們通過在 SQL Server 中存儲 Viewstate 來解決這個問題.在走這條路之前,我建議嘗試限制您對視圖狀態的使用,不要在其中存儲任何大的東西,并為所有不需要它的控件關閉它.

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.

在 SQL Server 中存儲 ViewState 的參考:
MSDN - PageStatePersister 概述
ASP 聯盟 - 在 SQL Server 中存儲視圖狀態的簡單方法
代碼項目 - ViewState 提供者模型

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

這篇關于導致此“Base-64 字符數組的長度無效"的原因是什么?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Is there a way to know if someone has bookmarked your website?(有沒有辦法知道是否有人為您的網站添加了書簽?)
Use of Different .Net Languages?(使用不同的 .Net 語言?)
Determining an #39;active#39; user count of an ASP.NET site(確定 ASP.NET 站點的“活動用戶數)
Best way to keep track of current online users(跟蹤當前在線用戶的最佳方式)
Recommend an Open Source .NET Statistics Library(推薦一個開源的.NET統計庫)
Create a summary description of a schedule given a list of shifts(給定輪班列表,創建時間表的摘要描述)
主站蜘蛛池模板: 亚洲成人免费av | 国产精品3区 | 精品一区二区三区四区在线 | 国产精品毛片一区二区三区 | 一区免费视频 | 成人福利网站 | 亚洲精品成人av久久 | 三a毛片 | 国产亚洲一区精品 | 久久久久久久久久久久91 | 久久久久久国产精品 | 国产伦一区二区三区久久 | 超碰在线人人干 | 日韩中文字幕在线视频 | 91久久国产综合久久 | 亚洲第一成人av | 国产精品亚洲一区二区三区在线 | 国产一区久久 | 激情视频中文字幕 | www.久久久.com| 红桃视频一区二区三区免费 | 国产成人免费视频 | 在线观看国产精品一区二区 | 国产精品区二区三区日本 | 久久久精品一区二区 | 久久亚洲综合 | 欧美一级久久 | 国产视频在线一区二区 | 欧美日韩中文字幕在线 | 91亚洲国产成人精品一区二三 | 91视频精选 | 九九热在线观看视频 | 国产资源在线视频 | 97精品久久 | 欧美一二三区 | 亚洲欧洲激情 | 欧美一区二区三区国产精品 | 国产精品不卡 | 国产一区二区三区在线 | 国产在视频一区二区三区吞精 | 国产专区在线 |