Home php教程 PHP开发 IIS7.0 running ASP 500 error solution

IIS7.0 running ASP 500 error solution

Jan 06, 2017 pm 04:07 PM

Server environment: Windows2008 + IIS7

Client browser settings: Cancel "Show friendly HTTP error messages"

IIS7 settings (GUI):

1 . -ASP-Debug Properties-Send Error to Browser, change to True

IIS7.0 运行ASP 500错误 解决方法

##2. -Error Page-Action- Edit the function settings and select "Detailed Error Information"

IIS7.0 运行ASP 500错误 解决方法

By default, the third item selected here is "Detailed Error for Local Requests and Custom Error Page for Remote Requests" ”, so the situation will be: you can see the error details when debugging locally, but you cannot see it when accessing remotely.

In addition, there are some opinions on the Internet that the error 500 is also changed to 500-100.asp. I tried it myself, but it didn't work. If the second step above is not set, errors cannot be sent to the client's browser.


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

If it is an Asp program under Windows 2008 IIS7, if an error occurs, a contact administrator message will be displayed. If we want to display Detailed error message, what should I do? You can modify it through the following method. Of course, it is best to change it back after debugging is completed, because this can reduce the risk of being attacked.

1 Run the command method:

%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true
If you want to change it back, no detailed information will be displayed If so, just run the following command:
%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:false

2 Modify file method

You can open In the %windir%\system32\inetsrv\config\applicationHost.config file, modify the asp item under the system.webServer section and add the scriptErrorSentToBrowser="true" attribute, as shown in the figure below. Of course, if you want to change it back, delete it Just add the newly added content, then save and exit.


Note: At the same time, you need to cancel "Show Friendly HTTP Error Messages" in the IE settings in "Internet Options"-"Advanced"-"Show Friendly HTTP Error Messages" Checked=False.

3 UI configuration method

This is the simplest, just double-click the ASP icon and then set it. However, please note that the Asp module must be installed to see the Asp icon. The installation module is added in the role of the service manager.

For more IIS7.0 running ASP 500 error solutions, please pay attention to the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)