Sys.WebForms.PageRequestManagerServerErrorException 12031

asp.net, asp.net-ajax, exception

Solution

It's a viewstate problem, but not related with time but with size. Try playing with maxRequestLength in your web.config.

Problem

I'm occasionaly getting the following popup from an AJAX.NET application ``` Sys.WebForms.PageRequestManagerServerErrorException: An Unknown error occurred while processing the request on the server. The status code returned from the server was: 12031 ``` From the Microsoft kb that status code indicates a ERROR_INTERNET_CONNECTION_RESET, but it doesn't state what was the underlying issue the triggered the error in the first place. How can I log/trace/etc the underlying error that generated the popup?

Original source