Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tommy Albinsson 121 posts 254 karma points
    Sep 14, 2011 @ 13:03
    Tommy Albinsson
    0

    How to catch access denied in application under an umbraco installation?

    Hello,

    I have got a application that i have added under the umbraco installation. After a little tweaking of the config file i got it to work.

    When using the <authorization> element in the web.config it does work when i have access but when i remove myself from the group that does have access i get the iis standard 401.2 access denied error.

    How do i catch this exception and redirect to my access denied page instead? I have tried to configure custom errors on 401, and create a new global.asax file due to powell's suggestions but i can't get it to work.

    Any ideas?

  • PBrack 20 posts 42 karma points
    Sep 14, 2011 @ 15:53
    PBrack
    0

    I would imagine that looking at your IIS error config would provide the answer you're looking for

  • Tommy Albinsson 121 posts 254 karma points
    Sep 14, 2011 @ 16:17
    Tommy Albinsson
    0

    Since the error occurs in an application that lies under the umbraco application in iis it seems like it by passes when i add it to the .NET error pages. I have added the error page 401 to my main application and the underlying application but i still shows the IIS standard access denied.

Please Sign in or register to post replies

Write your reply to:

Draft