UpdatePanel the server was: 12031

[转载]daqiaonanlu2000的专栏

使用微軟的UpdatePanel,當UpdatePanel包的太大,出現下列 錯誤訊息

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12031


微軟的KB是這樣寫的

12031 ERROR_INTERNET_CONNECTION_RESET
The connection with the server has been reset.

http://support.microsoft.com/kb/193625

也有人提到,是 因為request的buffer不足,所造成的!
所以建議調整,Web.Config檔

<httpRuntime maxRequestLength="8192"/>


但是對我的情況來說,都沒有解決問題~~

後我我姑且 這樣做~~
在@ Page 指示詞中加入

enableeventvalidation="false"


這 樣就OK了~~
原文地址:https://www.cnblogs.com/guo0/p/1748239.html