Enabling ASP Error Processing (IIS 6.0)

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.

  Important

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".

Procedures

To enable ASP error processing by mapping to a URL

1.

Create a file that contains your custom error message, and save it to a virtual directory.

2.

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.

3.

Click the Custom Errors tab.

4.

In the Error messages for HTTP errors list, click the HTTP error that you want to change, and then click Edit.

5.

In the Message Type list box, click URL.

6.

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.

7.

Click OK, and then click OK again.

Related Information

For more information about HTTP status codes (100 - 500) see HTTP Status Codes in IIS 6.0.

For information about client error codes (400 - 404) and how to troubleshoot common request problems, see HTTP 40x -- Client Error Codes.



© 2014 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies
Microsoft