Enabling ASP Error Processing
Updated: August 22, 2005
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
The default Web site transfers the processing of Active Server Pages (ASP) errors to the 500-100.asp file (by default). If you create a new Web site, ASP errors return standard HTTP Status Codes (known as Default in IIS Manager. If you want to customize ASP errors, you can either map the 500-100 error to the 500-100.asp file or create an error-processing ASP file of your own. If you create an ASP error-processing file of your own, you must enable the custom error file through IIS Manager.
|You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".|
Create a file that contains your custom error message, and save it to a virtual directory.
In IIS Manager, double-click the local computer; right-click the Web site, virtual directory, directory, or file for which you want to enable ASP error processing; and then click Properties.
Click the Custom Errors tab.
In the Error messages for HTTP errors list, click the HTTP error that you want to change, and then click Edit.
In the Message Type list box, click URL.
In the URL box, type the URL that points to your customized error message by typing the path to the URL, beginning with the virtual directory name.
Click OK, and then click OK again.