J
JJ
I have seen many examples to set custom error pages as follows:
<customErrors mode="RemoteOnly" defaultRedirect="errors/ErrorPage.aspx">
<error statusCode="400" redirect="errors/ErrorPage400.aspx" />
<error statusCode="401" redirect="errors/ErrorPage401.aspx" />
<error statusCode="403" redirect="errors/ErrorPage403.aspx" />
<error statusCode="404" redirect="errors/ErrorPage404.aspx" />
</customErrors>
The question I have is: Can this ever work for 401 errors (access denied)? I
can't get it to work - it always redirects to the login page. I am using
forms authentication.
JJ
<customErrors mode="RemoteOnly" defaultRedirect="errors/ErrorPage.aspx">
<error statusCode="400" redirect="errors/ErrorPage400.aspx" />
<error statusCode="401" redirect="errors/ErrorPage401.aspx" />
<error statusCode="403" redirect="errors/ErrorPage403.aspx" />
<error statusCode="404" redirect="errors/ErrorPage404.aspx" />
</customErrors>
The question I have is: Can this ever work for 401 errors (access denied)? I
can't get it to work - it always redirects to the login page. I am using
forms authentication.
JJ