Log---IIS displays specific errors for the ASP.

Source: Internet
Author: User
Tags web hosting

The original IIS is set to display a single error page

But the recent server Page error, but the local is really intact, so I want to let the server display specific error

Two methods are found on the Internet;

First of all, one effective:

Configuration via Web. config

In fact, the above in both configurations, will eventually be reflected in the corresponding Web. config. Therefore, we can edit the Web. config directly. Especially for purchased virtual hosts (Shared Web Hosting), there is no permission to change IIS. Open the Web site directory, locate the Web. config file (if not, create a TXT file to save as Web. config), locate the System.webserver configuration section, add the configuration .

<configuration>    <system.webServer>        

Attention

This parameter option can be applied to a Web site or subdirectory or to a virtual directory.

This parameter option is valid for all IIS applications, including ASP, Aps.net, PHP, and so on.

If it is an ASP, you may also need to configure <customerrors mode= "Off"/>

<system.web>     <customerrors mode= "Off"/> </system.web>




Here are the second, online a lot of this practice, but I have no effect, you can try it yourself
The first step:

1. Open IIS, or press and hold WIN + R to open the command line Input inetmgr open IIS Management

2, the left directory select the target site, in the right IIS block, double-click "ASP"

3. Expand the Debug Properties node in the ASP page

4. Find "Send error to Browser" and select True

5, the application can be.

Part II:

1. Open IIS Manager, or press and hold WIN + R to open the command line Input inetmgr open IIS Management

2, the left directory select the target site, in the right IIS block double-click "Error Page"

3. Select "Edit feature Settings" in the "actions" item on the right side of the error page

4, in the Error responses, select detailed errors, stand-alone OK to complete the configuration.

Log---IIS displays specific errors for the ASP.

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.