Sys.WebForms.PageRequestManagerServerErrorException 12031

bas*_*gio 19 asp.net exception-handling asp.net-ajax

我偶尔会从AJAX.NET应用程序中获取以下弹出窗口

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

Microsoft kb,状态代码指示ERROR_INTERNET_CONNECTION_RESET,但它没有说明首先触发错误的根本问题是什么.

如何记录/跟踪/ etc生成弹出窗口的基础错误?

Zac*_*tes 21

如果您是从updatePanel获取的,请在ScriptManager中为页面设置EnablePartialRendering为false,然后它会给您实际的错误.

此外,如果它偶尔发生,我发现它可能是一个viewstate问题,特别是当页面在刷新之间很长时间(20分钟左右)时.

否则,尝试一些try/catch块.这些是一些简单的方法.

希望有所帮助!


pen*_*ito 15

这是一个观点问题,但与时间无关,但与大小无关.尝试在web.config中使用maxRequestLength.