Iis7.0 running ASP 500 Error Solution

Source: Internet
Author: User

Server Environment: windows2008 + iis7

Client browser settings: Cancel "Displaying friendly HTTP Error messages"

Iis7 settings (GUI ):

1. <website>-Asp-Debug properties-Send the error to the browser and change it to true.

2. <website>-error page-operation-Edit function settings, and select "detailed error information"

By default, the third item "Detailed errors of local requests and custom error pages of remote requests" is selected. Therefore, the following error occurs: you can see detailed error information during local debugging, but you cannot see the error details during remote access.

In addition, the error 500 is modified to 500-100.asp. I tried it myself, but it didn't work. If the second step is not set, the error cannot be sent to the browser of the client.

How to display detailed ASP error messages in Windows 2008 iis7

In Windows 2008 iis7, if it is ASPProgramIf an error occurs, a contact administrator message is displayed. What should we do if we want to display a detailed error message? You can modify it through the following methods. Of course, if debugging is complete, you 'd better change it back, because it can reduce the risk of being attacked.

1. Run the command:

% Windir % \ system32 \ inetsrv \ appcmd set config-Section: Asp-scripterrorsenttobrowser: True
If you want to change it back to not display details, you only need to run the following command:
% Windir % \ system32 \ inetsrv \ appcmd set config-Section: Asp-scripterrorsenttobrowser: false

2. File Modification Method

You can open % WINDIR % \ system32 \ inetsrv \ config \ applicationhost. config File, modify system. add the scripterrorsenttobrowser = "true" attribute to the ASP entry in the webserver section, as shown in. Of course, you can delete the newly added content if you want to change it back, then save the disk and exit.

Note: at the same time, you need to cancel the "show friendly HTTP Error information" location in the "Internet Options"-"advanced"-"Show friendly HTTP Error information" Checked = false.

3 UI configuration method

This is the simplest. Double-click the ASP icon and set it. However, you must install the ASP module to view the ASP icon. The installation module is added to the role of the Service Manager.

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.