P.Brian.Mackey
P.Brian.Mackey

Reputation: 44285

IIS6 - Why won't my Custom error page display?

I have a custom error page that should display for HTTP 404 errors. It does not and I am having difficulty figuring out why.

My web.config is set

<customErrors mode="On" />

Fiddler shows a 401.2, followed by a 404 for a single POST. Both errors should be custom. The 401.2 is working because I see it in fiddler. The 404 happens immediately after so all I see in the browser is the generic 404 error. I should see my custom 404 page.

Why won't my custom HTTP 404 page showup?

Upvotes: 3

Views: 2388

Answers (2)

x0n
x0n

Reputation: 52430

What's the URL you are testing with? If it's not a file type handled by ASP.NET (e.g. /foo/bar.txt) then you won't see the ASP.NET defined 404 handler.

-Oisin

Upvotes: 3

MikeM
MikeM

Reputation: 27405

If you're looking for what the 404.x codes mean here's this

HTTP 404.x-File or Directory Not Found

  • None - File or directory not found.
  • 1 - Web site not accessible on the requested port.
  • 2 - Web service extension lockdown policy prevents this request.
  • 3 - MIME map policy prevents this request.

Seems to be an IIS specific code, not sure if IIS sends these details with the response

Upvotes: 0

Related Questions