PageRequestManagerServerErrorException with 500 error code

Rate It (1)

Last post 10-21-2008 9:38 AM by AjaySilver. 7 replies.

Sort Posts:

  • PageRequestManagerServerErrorException with 500 error code

    11-27-2006, 5:52 PM
    • Member
      257 point Member
    • terrysmith
    • Member since 02-23-2006, 5:45 PM
    • Posts 70

    In javascript I'm setting the value property of a button within an update panel before calling click() on the button to refresh the update panel. (I need to refresh an update panel and pass extra data on the callback, and no one on this forum has yet described a better way of doing it than this.)

    This was all working in tests that I did last week, but I'm now getting the following error message box in IE:

    "Sys.WebForms.PageRequestManagerServerErrorException: An unkown error ocurred while processing the request on the server. The status code returned from the server was: 500"

    Any ideas?

     

     

    ______________________
    Terry Smith
    Senior Architect
    Insight Ecosystems
    http://www.insightecosystems.com
  • Re: PageRequestManagerServerErrorException with 500 error code

    11-28-2006, 7:55 AM
    • Member
      66 point Member
    • jbilau
    • Member since 06-28-2006, 11:38 AM
    • Posts 18

    I have the same error but on a couple of dropdown which update one another's datesource with updatePanels.

    If i change the value of the first dropdown for several times, always the third tine gives this error.

    I found on a post the setting TRACE off resolves but not for me.

    Any ideas ?

    Just try to change frequently some controls which use updatepanels (for other controls) and see what's happen.

    Thank's

    Sorin

  • Re: PageRequestManagerServerErrorException with 500 error code

    11-28-2006, 8:06 AM
    • Member
      66 point Member
    • jbilau
    • Member since 06-28-2006, 11:38 AM
    • Posts 18

    I found also that If I have more than 3 UpdatePanels in a Page I get this error after 3 callbacks.

    If I have on page Trace="false"and "EnableEventValidation="true"

     I get this error:

    Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

    Thank's again

  • Re: PageRequestManagerServerErrorException with 500 error code

    11-28-2006, 11:20 AM
    • Member
      257 point Member
    • terrysmith
    • Member since 02-23-2006, 5:45 PM
    • Posts 70

    I've also tried setting the value of a hidden field and a hidden textbox and both raise the same error.

    I cannot even paste data into a textbox and then do a postback without getting this error.

    I'm also EXTREMELY TIRED OF MICROSOFT IGNORING ALL OF MY POSTS!!!!!!!!!!!  Angry

    ______________________
    Terry Smith
    Senior Architect
    Insight Ecosystems
    http://www.insightecosystems.com
  • Re: PageRequestManagerServerErrorException with 500 error code

    10-17-2008, 10:06 AM
    • Member
      12 point Member
    • AjaySilver
    • Member since 07-16-2008, 12:43 AM
    • Posts 6

    I have faced this issue couple of times. All the times it happened, "when i dont have a control in the updatepanel and trying to update it" or "I dont have mentioned the trigger event for it"

    See whether you are missing something like that.

  • Re: PageRequestManagerServerErrorException with 500 error code

    10-19-2008, 11:34 PM

    Hi

    It is not a good practice to use Response.Write from within an ASP.NET page in general. As UpdatePanels work by intercepting the page rendering process you are recieving the errors.

    You can put the code to generate the data in an HTTPHandler or you can make the button a PostBackTrigger.

    Add the following JavaScript:

    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

    function EndRequestHandler(sender, args)
    {       
               if (args.get_error() != undefined)
               {
                 args.set_errorHandled(true);location.reload(true);
               }
    }

    http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx

    http://alpascual.com/blog/al/archive/2007/04/26/How-to-fix-Sys.WebForms.PageRequestManagerParserErrorException-in-AJAX.aspx

    http://forums.asp.net/p/1040597/1448046.aspx

    http://forums.asp.net/t/1333182.aspx

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: PageRequestManagerServerErrorException with 500 error code

    10-21-2008, 6:31 AM
    • Member
      4 point Member
    • Phlotin
    • Member since 09-17-2008, 1:46 PM
    • Posts 5

    Have you tried turning off event validation in the @Page directive - e.g <% @Page ... EnableEventValidation="false" ... %> - I know this is not strictly good practive but ....

  • Re: PageRequestManagerServerErrorException with 500 error code

    10-21-2008, 9:38 AM
    • Member
      12 point Member
    • AjaySilver
    • Member since 07-16-2008, 12:43 AM
    • Posts 6

    I think error description is something misleading.  We don't need to do like that.  Did you check whether you placed the control in updatepanel, or you have proper trigger for the updatepanel?

    Thanks,

     Ajay

Page 1 of 1 (8 items)