从服务器返回的状态代码是:500 [英] The status code returned from the server was: 500

查看:230
本文介绍了从服务器返回的状态代码是:500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在我的网页上使用upddatepanel。在员工搜索按钮cilck事件中我收到此错误。任何人都可以帮我解决这个问题..?



Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:处理请求时发生未知错误在服务器上。从服务器返回的状态代码是:500




问候

Nanda Kishore.CH

Hi,
I am using upddatepanel in my webpage. In employee search button cilck event i got this error. Can any one help me how to solve this.. ?

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


Regards
Nanda Kishore.CH

推荐答案

您好,

当您在多个更新面板中将控件注册为AsyncPostbackTrigger时,会出现此问题。

尝试添加以下权限在脚本管理器声明之后:

Hi,
This issue comes when you have a control registered as an AsyncPostbackTrigger in multiple update panels.
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>





参考这个 [ ^ ]。







--Amit



Refer this[^] also.



--Amit


将应用程序池更改为ASP.NET v4.0 Classic,它将起作用
Change Application Pool to ASP.NET v4.0 Classic and it will work


浏览本文:

Sys.WebForms.PageRequestManagerParserErrorException - 它是什么以及如何避免它 [ ^ ]



我认为它会对你有所帮助。

祝你好运。
Go through this Article:
Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it [^]

I think it will help you.
Best of luck.


这篇关于从服务器返回的状态代码是:500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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