. NET prohibit remote viewing of application error details, application errors on the server

Source: Internet
Author: User

The following error occurred while opening the page

?

"/" Server error in the application.

Run-time error

description :? An application error occurred on the server. Current custom error settings for this application prevent remote viewing of application error details(for security reasons). However, it can be viewed by a browser running on the local server computer. ?

More information : ?to enable others to view the details of this specific error message on a remote computer, at the currentWebunder the application root directory"Web. config"configuration file, create a<customErrors>tags. You should then use this<customErrors>of the tag"mode"attribute is set to"Off".

?

<!--Web. config config file -->

?

<CONFIGURATION>

<system.web>

<customerrors mode= "Off"/>

</system.web>

</CONFIGURATION>


note : by modifying the application's <customErrors> configuration tag "defaultredirect" of the custom error page. URL

?

<!--Web. config configuration file -

?

<configuration>

<system.web>

<customerrors mode= "RemoteOnly" defaultredirect= "mycustompage.htm"/>

</system.web>

</configuration>

. NET prohibit remote viewing of application error details, application errors on the server

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.