6

In IIS 7 (.5) on my Windows Server 2008 r2, there are two places for error pages: ".NET Error Pages" under "ASP.NET" in Features View, and "Error Pages" under "IIS" in the same view.

It seems like the first does not do anything, but the latter does (in my web application).

Why are there two, and what is the difference?

1 Answer 1

5

.NET Error Pages are for displaying custom error pages when ASP.NET encounters an error (e.g. 404 for an .aspx page, or exception thrown while rendering an aspx page)

The Error Pages are for displaying custom error pages when IIS encounters an error (before it hands off processing a request to ASP.NET). These would be shown when a regular .html page encounters an error.

There are two different areas in web.config for controlling the custom error pages.

1
  • So, .net error pages happen when it is a server-side issue; while error pages happen when it is an html issue. Okay, then, when I create custom error pages, should I or can I point both types to the same page?
    – bgmCoder
    Jan 12, 2013 at 21:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .