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.