customError - 401.2 Access Denied

From: Mark (mfield_at_idonotlikespam.cce.umn.edu)
Date: 05/24/04


Date: Mon, 24 May 2004 16:20:29 -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_access_denied.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.

Suggestions?

Thanks in advance.
Mark

*** ASP.NET ERROR ***

Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. The server may not be configured for access to the
requested URL.

Error message 401.2.: You do not have permission to view this directory or
page using the credentials you supplied. Contact the Web server's
administrator for help.



Relevant Pages

  • customError - 401.2 Access Denied
    ... I'd like to avoid displaying the nasty built-in ASP.NET error for a 401.2, ... I've tried absolute and relative paths to the .htm file. ... error message below doesn't jive with the default value for 401.2 in IIS ... requested URL. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • customError
    ... I'd like to avoid displaying the nasty built-in ASP.NET error for a 401.2, ... I've tried absolute and relative paths to the .htm file. ... IIS custom errors do not appear to be leveraged whatsoever in this ... error message below doesn't jive with the default value for 401.2 in IIS ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Valid Win32 Application? (Failure to run an application
    ... run unless you rightclick the file, Properties, and click the "Unblock" ... button (e.g. a htm file that runs activex) ... >instructions twice but the same error message appears. ... >overcome this blip.I operate Windows XP and have no other problems ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Microst Excel 2002
    ... file, Properties, and click the "Unblock" button (e.g. a htm file that runs ... error message reads: unable to read file. ...
    (microsoft.public.windowsxp.help_and_support)