sender, EventArgs e)
var currentPage = HttpContext.Current.Request.Url.ToString();
Exception ex = Server.GetLastError();
HttpException httpEx = ex
"You are not authorized to access this page"
In version 5.0.2080 the error code I get when page is protected is -2147467259 (file does not exist).
Permissions set on the pages in question allow access only to "authenticated" users.
This puzzling error is obviously produced by Sitefinity, which considers the page as non-existent once it does not have permissions to display it.
Setting global.asax to redirect to the log-in page, sends visitors to the log-in page also when page really does not exist.
Hope this will be fixed in version 5.1.