Home> php教程> PHP开发> body text

IIS7.0 running ASP 500 error solution

高洛峰
Release: 2017-01-06 16:07:14
Original
1824 people have browsed it

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!

Related labels:
source:php.cn
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
Popular Recommendations
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!