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

導(dǎo)致此“Base-64 字符數(shù)組的長度無效"的原因是

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

問題描述

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

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

我傾向于認為分配給視圖狀態(tài)的數(shù)據(jù)存在問題.例如:

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;

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

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

如果有人遇到過這個錯誤,我真的很想知道你發(fā)現(xiàn)了什么.

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

推薦答案

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

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 來解決這個問題.在走這條路之前,我建議嘗試限制您對視圖狀態(tài)的使用,不要在其中存儲任何大的東西,并為所有不需要它的控件關(guān)閉它.

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 聯(lián)盟 - 在 SQL Server 中存儲視圖狀態(tài)的簡單方法
代碼項目 - 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

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

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

相關(guān)文檔推薦

Is there a way to know if someone has bookmarked your website?(有沒有辦法知道是否有人為您的網(wǎng)站添加了書簽?)
Use of Different .Net Languages?(使用不同的 .Net 語言?)
Determining an #39;active#39; user count of an ASP.NET site(確定 ASP.NET 站點的“活動用戶數(shù))
Best way to keep track of current online users(跟蹤當前在線用戶的最佳方式)
Recommend an Open Source .NET Statistics Library(推薦一個開源的.NET統(tǒng)計庫)
Create a summary description of a schedule given a list of shifts(給定輪班列表,創(chuàng)建時間表的摘要描述)
主站蜘蛛池模板: 亚洲成人福利视频 | 天天色综 | 成人免费在线电影 | 国产精品久久九九 | 91porn在线| 日韩电影一区二区三区 | 先锋影音资源网站 | 日本不卡一区 | 亚洲欧美一区二区三区在线 | 日韩乱码一二三 | 北条麻妃99精品青青久久 | 欧美成人精品一区二区男人看 | 免费一区二区三区 | 黄色在线免费观看视频 | 国产视频欧美 | 欧美在线精品一区 | 欧美激情va永久在线播放 | 国产精品一区二区av | 美女天天操 | 最新中文字幕在线播放 | 午夜小电影 | 亚洲综合电影 | 免费在线观看一区二区三区 | 亚洲一区二区电影网 | 国产福利在线看 | 91久久久久久久久久久久久 | 国产精品久久久久久久久久久久 | 日韩高清中文字幕 | 伊人国产精品 | 亚洲免费在线 | 国产一区二区三区四区五区加勒比 | 99影视| av一级一片 | 天堂色 | 亚洲精品中文字幕在线观看 | 国产视频精品在线 | 综合二区| 国产精品av久久久久久毛片 | 精品av天堂毛片久久久借种 | 激情欧美一区二区三区中文字幕 | 日本精品一区二区三区在线观看视频 |