I am getting a JScript when clicking a button but I get this error before the button event or page load event and it doesn’t seem to be erroring on any user code. Here is the error popup:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.
The status code returned from the server was: 500
In debug mode, the following throw is highlighted which is causing the popup:
if(d&&!e.get_errorHandled())throw d.
I do not know if this helps but if I take out a textbox from a column in a gridview, this stops failing.
I have several textboxes and it doesn’t matter which textbox I remove, as long as it is one of them. Can anyone point me to the issue?
thanks, bob
It turns out it has to do with maxing out a collection’s index within http processing on the server. I was loading a grid with about 10 columns and 300 rows. After debugging the JScript, I eventually got an error “Operation is not valid due to the current state of the object”. This led me to the following blog: Microsoft Security Bulletin MS11-100 – Critical – Issues and Fixes All I did to fix the problem was I added a configuration setting in web config for appSettings:
The error thrown on the server as useless. Crap, why did I become a coder 🙂