How to display ASP detailed error information in IIS7.5 under win7

  


If it is an Asp program under Windows 2008 IIS7, if there is an error, a contact administrator information will be displayed if we want to display detailed information. Error message, what should I do? You can modify it by the following methods. Of course, if you have finished debugging, it is best to change it back, because it can reduce the risk of being attacked.
1 Run command method:
%windir%\\system32\\inetsrv\\appcmd set config -section:ASP/' target='_blank' class='infotextkey'>asp -scriptErrorSentToBrowser:true
If you want If you change it back and don't display the details, just run the following command:
%windir%\\system32\\inetsrv\\appcmd set config -section:asp -scriptErrorSentToBrowser:false
2 Modify the file method
You can open the %windir%system32inetsrvconfigapplicationHost.config file, modify the asp item under the system.webServer section, and increase the scriptErrorSentToBrowser=”true” attribute, as shown in the following figure. Of course, if you want to change it back, delete the newly added one. The content is fine, then save and exit.
Note: At the same time you need to cancel the IE settings to "Show friendly HTTP error messages" "Location in "Internet Options"-"Advanced"-“Show friendly HTTP error messages> Checked= False.
3 UI configuration method
This is the easiest way to directly double-click the ASP icon, and then set it. Note, however, that you must have the Asp module installed to see the Asp icon, and the installation module is added in the role of the Service Manager.

Copyright © Windows knowledge All Rights Reserved