Click here to Skip to main content
15,886,030 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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
Posted
Comments
Kenneth Haugland 14-Aug-12 5:54am    
SOmething is wrong in your configuration of IIS or whatever you are using...
nandkishorre 14-Aug-12 5:59am    
its not hosting in iis.
gp_logesh 23-Jan-13 2:00am    
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

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:
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>


Refer this[^] also.



--Amit
 
Share this answer
 
v2
Comments
nandkishorre 14-Aug-12 7:37am    
Thank You. Its Working.
Member 8533630 12-Dec-13 0:32am    
I have same problem but my site hosted on IIS.
This problem is coming on hosted site when application works on IE10 and 11.
I have tried this solution but its not working at my end.
Please solve this problem.
_Amy 14-Aug-12 8:06am    
Welcome. :)
Change Application Pool to ASP.NET v4.0 Classic and it will work
 
Share this answer
 
Go through this Article:
Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it [^]

I think it will help you.
Best of luck.
 
Share this answer
 

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