I've implemented a catch all security exceptions method in my global.asax like this...
protected void Application_Error(object sender, EventArgs e)
{
Exception err = Server.GetLastError();
if (err is System.Security.SecurityException)
Response.Redirect("~/Error/Roles.aspx);
}
Is there a property I can access that shows the name of the role which was missing from the users permissions? Ie. err.RoleThatFailed?
Manh thanks,
ETFairfax.
You can just output the whole stacktrace.
i.e.,
err.ToString()
will tell you more info.