Click here to Skip to main content
15,886,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Everything works fine, except when the CheckBoxList has many elements (thousands of items) and I click on the and i checked the other div's checkbox then the following error occurs:
C#
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

This error occurs in one of the ScriptResource.axd
Posted
Updated 11-Jan-17 16:56pm
v3
Comments
Thanks7872 19-Aug-13 8:30am    
CheckBoxList has many elements (thousands of items)?

This makes no sense. Really.

Refer - “Sys.WebForms.PageRequestManagerServerErrorException: status code: 500”[^].
Quote:

This issue sometimes occurs when you have a control registered as an AsyncPostbackTrigger in multiple update panels.


If that's not the problem, try adding the following right after the script manager declaration:


JavaScript
<script type="text/javascript" language="javascript">
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    function EndRequestHandler(sender, args){
        if (args.get_error() != undefined){
            args.set_errorHandled(true);
        }
    }
</script>

There are a few more solutions discussed here: http://forums.asp.net/t/1066976.aspx/9/10

 
Share this answer
 
IT's Just IE9 Big BUG. I just unchecked all the record before make any trigger.now it's working fine.
 
Share this answer
 
Hi I had the same problem. I added value of MaxHttpCollectionKeys as 8001 in web.config as below and it works for me

<appsettings>
<add key="aspnet:MaxHttpCollectionKeys" value="8001"/>


Hope this will help some one :)
 
Share this answer
 
Comments
7045Jeegnesh 8-Mar-17 11:00am    
Great.. may be Useful for other...
No. Its not only in IE9. I am having the same issue in Google Chrome as well. Still I can't find solution of it.
 
Share this answer
 
Comments
7045Jeegnesh 30-Jun-14 4:57am    
but you can try with above solution....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900