customError
From: Mark (mfield_at_idonotlikespam.cce.umn.edu)
Date: 06/07/04
- Next message: Frank Hileman: "Re: UNION in struct"
- Previous message: John J. Hughes II: "Re: duplicate entry after update"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 7 Jun 2004 08:29:19 -0500
I'd like to avoid displaying the nasty built-in ASP.NET error for a 401.2,
access denied. We're using windows authentication. The error message that
is displayed by default is printed below. I'd love for it to redirect to
the 401-2_access_denied.htm file I've created in the root of my web site.
The text below is from my web.config file.
<customErrors defaultRedirect="error.htm" mode="On">
<error statusCode="401.2" redirect="401-2_myfile.htm"/>
</customErrors>
1. I've tried a statusCode of 401, 401-2, and 401.2.
2. I've tried absolute and relative paths to the .htm file. Relative should
work just fine as the web.config and .htm file are both in the root of the
site.
3. IIS custom errors do not appear to be leveraged whatsoever in this
situation when modified. This is further demonstrated by the fact that the
error message below doesn't jive with the default value for 401.2 in IIS
Custom Errors.
Suggestions?
Thanks in advance.
Mark
- Next message: Frank Hileman: "Re: UNION in struct"
- Previous message: John J. Hughes II: "Re: duplicate entry after update"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|