I presume you mean Page_Error within that specific .aspx
On that suggestion, I gave it a try - unfortunately it does not appear to call it.
From what I understand of the lifecycle of a page, the first thing that gets called is ProcessRequest (part of the base Page class) - but even that isn't being called, so I believe .NET is being stopped by the filesystem before it has a chance to touch the offending page.
...
User Profile
Collapse
-
It might not be the "correct" way to handle it, but the global.asax suggestion was a good one, and works. Thank you. =)
I'm still curious where in the lifecycle this goes before the error is generated.
Is there a way to determine exactly what called the Application_Err or?
Since the stack trace has System.IO in it right before it bombs out, I'm guessing it came from the filesystem, but .NET had to...Leave a comment:
-
Thank you for the reply but I'm afraid that doesn't help.
As I said in my initial post:
1. Using Integrated Windows Authentication on one particular .aspx
2. On the file system, have DENY access to certain people.
3. If one of those people type in the URL to that .aspx, an exception is generated that I cannot find where to trap.
People not on the DENY list can access the .aspx just fine. It's...Leave a comment:
-
Handling UnauthorizedAccessException
I have a forms-based authentication application on our intranet - ASP.NET 3.5 (C#).
For security purposes there is one specific .aspx file that we have enabled Integrated Windows Authentication turned on. Administrators in another group control access to this .aspx file via the file system. They have specifically set DENY access on this file to a few groups of employees.
If one of those employees somehow manages to...
No activity results to display
Show More
Leave a comment: