Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 753
P.Brian.Mackey Avatar asked Feb 01 '26 01:02

P.Brian.Mackey


1 Answers

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

like image 142
x0n Avatar answered Feb 02 '26 18:02

x0n



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!