Sys系统。 WebForms的。 PageRequestManagerServerErrorException状态代码:500 [英] Sys. WebForms. PageRequestManagerServerErrorException Status Code: 500
问题描述
一切正常,除非CheckBoxList有很多元素(数千个项目),然后我点击并检查了另一个div的复选框,然后发生以下错误:
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:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
此错误发生在ScriptResource.axd之一
This error occurs in one of the ScriptResource.axd
推荐答案
请参阅 - Sys.WebForms.PageRequestManagerServerErrorException:status code:500 [ ^ ]。
Refer - "Sys.WebForms.PageRequestManagerServerErrorException: status code: 500"[^].
当您将控件注册为AsyncPostbackTrigger时,有时会出现此问题多个更新面板。
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:
<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>
这里讨论的解决方案还有一些: http://forums.asp.net/t/1066976.aspx/9/10
There are a few more solutions discussed here: http://forums.asp.net/t/1066976.aspx/9/10
IT只是IE9的大BUG。在发出任何触发器之前,我只是取消选中所有记录。现在它工作正常。
IT's Just IE9 Big BUG. I just unchecked all the record before make any trigger.now it's working fine.
您好我有同样的问题。我在web.config中添加了MaxHttpCollectionKeys的值为8001,如下所示,它适用于我
< appsettings>
< add key =aspnet:MaxHttpCollectionKeysvalue =8001/>
希望这会对某人有所帮助:)
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 :)
这篇关于Sys系统。 WebForms的。 PageRequestManagerServerErrorException状态代码:500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!