SYS. webforms. pagerequestmanagerservererrorexception: an unknown error occurred while processing

Source: Internet
Author: User

Recently, an Ajax control was used to automatically refresh some page data at regular intervals without screen refreshing.
SYS. webforms. pagerequestmanagerservererrorexception: an unknown error occurred while processing the request on the server. The status code returned from the server was: 500.
Several solutions are found online

Method 1:
Add this sentence to Web. config.Code, Do not verify the event data
<System. Web>
<Pages enableeventvalidation = "false"/>
</System. Web>
Problem: This code originally exists in my web. config, but my local computer and some computers won't see the above errors, but some computers will appear, depressed ......

Method 2:

Add enablepartialrendering = "false" to scriptmanager to display detailed error information.

As follows:
<Asp: scriptmanager id = "scriptmanager1" runat = "server" enablepartialrendering = "false"/>
Problem: This method will make the page have a screen flushing effect. I just want to solve the screen flushing problem, so it cannot solve my problem.

Method 3:
The general cause is that there are potential dangerous characters on the page. Add validaterequest = "false" to the header"

As follows:

<% @ Page Language = "C #" masterpagefile = "~ /Masterpages/companymanage. Master "autoeventwireup =" true "codefile =" companyintroedit. aspx. cs "inherits =" companyintroedit "Title =" untitled page "validaterequest =" false "%>

The last method is quite effective and has not been found yet.

Thank you !!!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.