locked
Need a solution RRS feed

  • Question

  • User1270522450 posted

    Getting below error while change the dropdown or any button click on aspx page randomly, only on production server IIS and not recreated on local.

    sys.webforms.pagerequestmanagerservererrorexception 500.

    Following solutions not working for me !!!.

    1.

    1.
    <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>

    2.<%@ Page ValidateRequest="false" %>

    3.
    <add key="aspnet:MaxHttpCollectionKeys" value="100000" />
    </appSettings>
    <system.web.extensions> <scripting> <scriptResourceHandler enableCompression="false" enableCaching="true"/> </scripting> </system.web.extensions>
    Tuesday, May 28, 2019 8:17 PM

All replies

  • User665608656 posted

    Hi Sathiyabharathi,

    According to your question and the information you provided, there are many possibilities for this problem to arise.

    Here are three possible solutions for your reference:

    1.The easiest is to simply place the button outside of any UpdatePanels.

    2.Add a PostBackTrigger to your UpdatePanel that points at the button. This works great if the button is declared statically through markup on the page.

    3.Call ScriptManager.RegisterPostBackControl() and pass in the button in question. This is the best solution for controls that are added dynamically, such as those inside a repeating template.

    If these fail to help you, could you please take the relevant code out for my reference, which will help us solve the issue easierly.

    Best Regards,

    YongQing.

    Wednesday, May 29, 2019 2:47 AM