search
Homephp教程PHP开发IIS7.0 running ASP 500 error solution

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
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

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.