You probably already found your answer, but I'll post an answer for
anyone else stumbling across this thread. Sorry, you'll have to
perform any VB.Net-to-C# conversions. Place the following code in the
Page_Load of your login form:

If Context.User.Identity.Name.Length > 0 And Not IsPostBack Then
Response.Redirect("AuthFailed/AuthFailed.aspx")
End If

Of course the AuthFailed.aspx form needs to be in some location with
few or no role restrictions, since users end up there because they
lack role membership. That's why I put it in a separate folder, where
the Web.config authorization section has only <allow users="*" />

Good luck,
Ray

"Matt Brown" <mlbrown7@hotmail.com> wrote in message news:<#UxP4XiUDHA.1196@TK2MSFTNGP10.phx.gbl>...
> I am using FormsAuthentication and roles loaded from a database.
> ...when the user tries to
> access a page that they do not have the role for, they are just sent
> back to the logon page. I would like to show a permission denied error
> - but, can't find a way to trap for this.