An unknown error occurs when processing requests on the server. The status code 500 returned by the server. .

Source: Internet
Author: User

First, status code 500 is a non-known type server error. What we found today is a page verification error when a page is dynamically loaded because HTML elements are dynamically written to the page, the page verification fails due to the nonstandard HTML elements, so the request is interrupted.

The next step is the solution. Our predecessors have already provided a lot of ideas. Let's talk about these methods:

1. Add the validaterequest = "false" attribute value to the page tag of the page file.

This method has no significant page element errors (potentially dangerous but not executable)ProgramYes, provided that you do not need to consider preventing page script attacks and other factors endangering program security.

2. Add the "<pages enableeventvalidation =" false "/>" element to the system. Web Section of the configuration file web. config.

This is the same as the above method. The difference is that the scope is extended to all page files affected by this configuration file.

3. Add the enablepartialrendering = "false" attribute to the scriptmanager control of the page.

This method does not directly solve or avoid the problem. It is to display the detailed page errors so as to find the places to be corrected. I personally think this is the right path and cannot avoid errors, instead, try to avoid errors.

 

Therefore, personal recommendations:

Add the enablepartialrendering = "false" attribute for the scriptmanager control on the page. Locate the error and modify it.



Original post address: http://www.cnblogs.com/haof3344/archive/2012/09/01/2666516.html

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.