Error: webforms. pagerequestmanagerservererrorexception

Source: Internet
Author: User

SYS. webforms. pagerequestmanagerservererrorexception: an unknown error occurred while processing the request on the server. The status code returned from the server was: 500

SYS. webforms. pagerequestmanagerservererrorexception: an unknown error occurs when the server processes the request. The status code returned by the server is 500.

This error may be due to more than one cause. My error is caused by the occurrence of a character that the compilation system considers dangerous ("<div>" is written in <textarea> "). This "<div>" is not required here, so my solution is to remove the "<div>" string.

If necessary, you can add validaterequest = "false" to the header so that it does not validate dangerous strings.

As follows:

<% @ Page Language = "C #"... validaterequest = "false" %>

Other solutions found on the Internet:

1,

How to display detailed error information:

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

As follows:

<Asp: scriptmanager id = "scriptmanager1" runat = "server" enablepartialrendering = "false"/>

 

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 "%>

2,

In web. config

<System. Web>

<Pages enableeventvalidation = "false"/>

</System. Web>

This method has no effect on my problem at the time, and I still don't know what the problem is.

3,

From .... The request. form value is detected. That's my problem.

Solution:

<! -- When this sentence is added to the header, no prompt is displayed: the client detects a potentially dangerous request. form value -->

As follows:

<% @ Page Language = "C #"... validaterequest = "false" %>

You can also add

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.