久久久久久久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(給定輪班列表,創建時間表的摘要描述)
主站蜘蛛池模板: 日韩在线 | 亚洲精品久久视频 | www.中文字幕.com | 91色啪| 宅男伊人 | 国产 91 视频 | 国产精品乱码一二三区的特点 | 久久久性色精品国产免费观看 | 华人黄网站大全 | 成人午夜精品 | 国产成人福利在线观看 | 精品欧美一区二区三区久久久小说 | 91在线观看视频 | 亚洲一区二区在线播放 | 请别相信他免费喜剧电影在线观看 | 亚洲自拍偷拍欧美 | a在线观看| 激情 亚洲 | 成人伊人| 久久精品亚洲欧美日韩精品中文字幕 | 欧美一区二区三区在线观看 | 亚洲社区在线 | 日韩在线一区二区三区 | 日日夜夜av | 国产成人在线观看免费 | 国产清纯白嫩初高生在线播放视频 | 91精品国产日韩91久久久久久 | 久久精品小视频 | 成人免费毛片片v | 人碰人操 | 精产国产伦理一二三区 | 97精品超碰一区二区三区 | 羞视频在线观看 | 久久国产日韩 | 国产精品久久久久无码av | 欧美一级网站 | 国产96色在线 | 网站国产 | .国产精品成人自产拍在线观看6 | 国产成人精品a视频一区www | 日韩第一区|