User Profile

Collapse

Profile Sidebar

Collapse
imukai
imukai
Last Activity: Sep 16 '09, 06:04 PM
Joined: Jan 7 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • imukai
    replied to Handling UnauthorizedAccessException
    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.
    ...
    See more | Go to post

    Leave a comment:


  • imukai
    replied to Handling UnauthorizedAccessException
    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...
    See more | Go to post

    Leave a comment:


  • imukai
    replied to Handling UnauthorizedAccessException
    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...
    See more | Go to post

    Leave a comment:


  • imukai
    started a topic Handling UnauthorizedAccessException

    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...
    See more | Go to post
No activity results to display
Show More
Working...