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