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.