Software⏱️ 3 min read📅 2026-06-11

How to Fix: How can I use an own asp page as 404 error page on a Windows 7 pro IIS 7.5 local installation

IIS 7.5 error handling issue with custom ASP page as 404 error page on Windows 7 Pro local installation.

Quick Answer: Check the 'Custom Error' settings in IIS Manager and ensure that the ASP page is correctly configured as a 404 handler.

This troubleshooting guide is designed to help you resolve the issue of using an ASP page as a 404 error page on a Windows 7 Pro IIS 7.5 local installation.

The problem affects users who are trying to use this specific technique, which works fine in a deployed environment but not in a local development setup.

💡 Why You Are Getting This Error

  • The issue arises because the custom error dialog in IIS 7.5 does not support executing a URL or responding with a redirect to an ASP page as a 404 handler.
  • Another possible cause is that the ASP page is not properly registered as a handler for the 404 error code.

🚀 How to Resolve This Issue

Registering the ASP page as a custom error handler

  1. Step 1: Open the IIS Manager and navigate to the 'Default Web Site' in the 'Sites' section.
  2. Step 2: In the 'Default Web Site' properties, click on the 'Edit Custom Error Dialog' button.
  3. Step 3: In the 'Error Dialog' dialog box, click on the 'Add...' button and select 'Execute a URL'.
  4. Step 4: Enter the path to your ASP page (e.g., /staplijst/p.asp) in the 'URL' field and click 'OK'.
  5. Step 5: Repeat the same steps for the 302 redirect, but this time enter the full URL of your ASP page (including the domain name).
  6. Step 6: Click 'OK' to save the changes.
  7. Step 7: Restart the IIS service or restart the web server to apply the changes.

Registering the ASP page as a handler for the 404 error code

  1. Step 1: Open the IIS Manager and navigate to the 'Default Web Site' in the 'Sites' section.
  2. Step 2: In the 'Default Web Site' properties, click on the 'Edit handlers' button.
  3. Step 3: In the 'Handler Mappings' dialog box, click on the 'Add...' button and select 'ASP Script Handler'.
  4. Step 4: Select 'asp.dll' as the executable file and enter '/staplijst/p.asp' as the path to handle HTTP errors.
  5. Step 5: Click 'OK' to save the changes.
  6. Step 6: Restart the IIS service or restart the web server to apply the changes.

💡 Conclusion

After following these steps, you should be able to use your ASP page as a 404 error page in your Windows 7 Pro IIS 7.5 local installation.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions