This is a migrated thread and some comments may be shown as answers.

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

5 Answers 2936 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ira
Top achievements
Rank 1
Ira asked on 07 Dec 2010, 08:22 AM
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.

5 Answers, 1 is accepted

Sort by
0
Ira
Top achievements
Rank 1
answered on 07 Dec 2010, 12:45 PM
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..
0
Dwaraka
Top achievements
Rank 1
answered on 15 Apr 2011, 09:43 PM
I tried by disabling pagevalidation ..how ever it doesn't work. Any other options?
0
Pero
Telerik team
answered on 20 Apr 2011, 04:04 PM
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.

0
Tarim
Top achievements
Rank 2
answered on 28 Jul 2011, 01:41 PM
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
0
Slav
Telerik team
answered on 02 Aug 2011, 01:32 PM
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.

Tags
General Discussions
Asked by
Ira
Top achievements
Rank 1
Answers by
Ira
Top achievements
Rank 1
Dwaraka
Top achievements
Rank 1
Pero
Telerik team
Tarim
Top achievements
Rank 2
Slav
Telerik team
Share this question
or