Sys.WebForms.PageRequestManagerServerErrorException:在处理服务器上的请求时出现未知错误" [英] Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server."

查看:602
本文介绍了Sys.WebForms.PageRequestManagerServerErrorException:在处理服务器上的请求时出现未知错误"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网页夫妇更新面板和jQuery选项卡。而且还我的更新面板加载夫妇用户控件。之后用户等了几分钟(不检查时间约40分钟)。当用户发送的提交按钮它给下面的错误要求?

I have couple of update panels and jquery tabs on page. And also I am loading couple user controls on update panels. After user waited for couple of minutes (not checked the time approx 40 mins). when user send request from submit button it is giving below error?

'Sys.WebForms.PageRequestManagerServerErrorException:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown 
error occurred while processing the request on the server. The status 
code returned from the server was: 0' when calling method: 
[nsIDOMEventListener::handleEvent]

我不能够跟踪这个问题的解决。但我敢肯定。这是由阿贾克斯引起。大师,如果你知道解决方案。请让我知道。

I am not able trace this issue to fix. But I am sure. This is causing by Ajax. Gurus, if you knows solution. Please let me know.

推荐答案

这个问题有时当你有多个更新面板注册为 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

这篇关于Sys.WebForms.PageRequestManagerServerErrorException:在处理服务器上的请求时出现未知错误&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆