IIS7.0 Run ASP 500 error resolution _win server

Source: Internet
Author: User

Service-side environment: Windows2008 + IIS7

client browser settings: Cancel "show friendly HTTP error messages"

IIS7 settings (GUI):

1. < website >-asp-Debug Properties-send error to browser, modify to True

2. < website >-error page-operation-Edit function settings, select "Detailed error message"

By default, this is the third "detailed error for local request and custom error page for remote request", so the situation is that you can see the details of the error in local debugging, but you can't see it by remote access.

In addition, there are some claims on the Internet that the 500 error is also modified to 500-100.asp. I tried it for myself, and there was no real effect. If you do not set the second step above, the error can also be sent to the client's browser.

How to display detailed error information for ASP in Windows 2008 IIS7

under Windows 2008 IIS7 If an ASP program is an error, a contact administrator information is displayed. What if we want to display detailed error messages? You can modify it in the following ways, of course, if you have finished debugging, it is best to change it back, because this can reduce the risk of attack.

1 Run the command method:

%windir%\system32\inetsrv\appcmd set config-section:asp- Scripterrorsenttobrowser:true
If you want to change back to not show details, you only need to run the following command:
%windir%\system32\inetsrv\appcmd set config- Section:asp-scripterrorsenttobrowser:false

2 Modify File Method

You can open%windir%\system32\ Inetsrv\config\applicationhost.config file, modify the ASP entry under the System.webserver section, and increase the scripterrorsenttobrowser= "true" property, As shown in the following figure, of course, to change back, delete the new additions can be, and then save a disk exit.


Note: At the same time you need to remove the "Show friendly HTTP error message" Location in Internet Options-"advanced"-"Show friendly HTTP error message" Checked=false in IE settings.

3 UI configuration

This is the simplest, just double-click the ASP icon and then set it. Note, however, that you must install the ASP module to see the ASP icon, the installation module is added in the role of the service manager.

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.