ASP. NET Common error messages

Source: Internet
Author: User

Runtime Error
Runtime error

Description: An application error occurred on the server. the current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons ). it cocould, however, be viewed by browsers running on the local server machine.
Note: An application error occurs on the server. The current custom error settings of this application disable viewing detailed information about application errors.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web. config "configuration file located in the root directory of the current web application. this <customErrors> tag shoshould then have its "mode" attribute set to "Off ".
Details: to enable others to view details of this specific error message from a local server computer, go to the "Web. create a <mermerrors> tag in the config file. Set the "mode" attribute marked by <customErrors> to "RemoteOnly ". To enable others to View Details on a remote computer, set "mode" to "Off ".
<! -- Web. Config Configuration File -->

<Configuration>
<System. web>
<CustomErrors mode = "Off"/>
</System. web>
</Configuration>
Notes: the current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
Note: Modify the defaultRedirect attribute of the <customErrors> Configuration tag of the application to point to the URL of the custom error page, you can use a custom error page to replace the current error page. (Www.bkjia.com)
<! -- Web. Config Configuration File -->

<Configuration>
<System. web>
<CustomErrors mode = "RemoteOnly" defaultRedirect = "mycustompage.htm"/>
</System. web>
</Configuration>

Related Article

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.