Here’s a great post by Jamie at OrcsWeb about setting up custom error pages in IIS7:
This blog post will explain how to configure custom error pages in IIS (Internet Information Server). For this example we will be using IIS 7.5 which shipped with Windows Server 2008 R2.
If we configure .NET Error Pages at the site level, ASP.NET stores the settings in the site’s web.config file. Since these settings are stored in the web.config file they are portable and can be easily moved to another server with the site’s content…
Read the complete post here: