Hi Kanwal,
Ok, I'm back with another question. I am now familar with existingResponse and when IIS and with ASP.NET are handling the errors.
But, my original issue is still there. I can't seem to get IIS to honor any changes to the error pages. I now have existingResponse="Replace" and test by making sure that test page doesn't have enough permissions to run. This throws a 401.3 error. But the error page is always the 401.0 page. I'v tried everything from the GUI, including pointing to dummy files, but to no avail.
Here are two examples of what I've tried:
<system.webServer>
<httpErrors existingResponse="Replace">
<clear />
</httpErrors>
</system.webServer>
and
<httpErrors existingResponse="Replace">
<clear />
<error statusCode="401" subStatusCode="3" path="C:\inetpub\custerr\en-US\403-19.htm" responseMode="File" />
</httpErrors>
Notice that I'm specifically checking for 401.3 and I'm pointing to a valid file, but it's a different file. Nothing changes though, no matter what I do.
Thanks,
Scott