Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

6 posts, 0 answers
  1. Ira
    Ira avatar
    11 posts
    Member since:
    Dec 2010

    Posted 07 Dec 2010 Link to this post

    Hii

    We are using RAD Grid, RAD Treeview, RAD Dock and bunch of other controls on a page. Based on node clicked on the treeview, the result in the grid changes. The entire page was working fine in .Net 3.5 perfectly fine. But when we migrated the application to .Net 4.0, the page started shouting. 
    Initially it gave JS errors as follow: 

    • Error: ASP.NET Ajax client-side framework failed to load.
    • Error: 'Sys' is undefined
    • Error: 'Telerik' is undefined

    And even page was not rendered correctly. It was completely messed up.
    After this we added

    <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />

    entry in web.config file under <handlers> section. After adding it, above errors are gone. 
    But now it is throwing following JS error when I click on the treenode. 

    Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

    Debugging shows following error which we caught in Application_Error : 
    A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
    <Group>
    ...").
    A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
    <Group>
    ...").
    A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
    <Group>
    ...").
    A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
    <Group>
    ...").

    A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
    <Group>
    ...").
    <Group>
    ...").
    <Group>
    ...").
    <Group>
    ...").
    <Group>
    ...").
    <Group>...").

    I am not able to understand why this error is coming and how to get rid of it..
    Any help appreciated.
  2. Ira
    Ira avatar
    11 posts
    Member since:
    Dec 2010

    Posted 07 Dec 2010 Link to this post

    After some googling, we found that the error was coming of because some restricted characters in request like '<','>'. In earlier version, it was not throwing the error because the request validation was turn off by setting validateRequest="false" in web.config or in <%@ Page directive of the page. But in 4.0, it is not having any effect because of the breaking changes in new version. For more detail, check this link.

    So adding requestValidationMode="2.0" in <httpRuntime> in web.config solves the problem.

    Thanks..
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dwaraka
    Dwaraka avatar
    1 posts
    Member since:
    Sep 2008

    Posted 15 Apr 2011 Link to this post

    I tried by disabling pagevalidation ..how ever it doesn't work. Any other options?
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 20 Apr 2011 Link to this post

    Hello Dwaraka,

    The following link might be helpful: ASP.NET 4 Breaking Changes.

    Regards,
    Pero
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  6. Tarim
    Tarim avatar
    5 posts
    Member since:
    Dec 2009

    Posted 28 Jul 2011 Link to this post

    I have a same problem. can someone help me please?  In my site, I have request submit form. It works fine on main page but, it did not work url rewrite page. need help...

    Thanks,

    Tarim
  7. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 02 Aug 2011 Link to this post

    Hello Nur,

    If you haven't already done so, I would suggest that you check if your scenario is covered by the article that Pero provided: ASP.NET 4 Breaking Changes.

    Please note that currently I am mostly guessing as to what your setup is and If the information above doesn't help you resolve your issues please provide a more detailed description of your scenario and the exact steps to reproduce the problem so that we can provide a more to the point answer.

    Greetings,
    Slav
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017