How to show a Access Denied Page when User is not in Role?

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default How to show a Access Denied Page when User is not in Role?

    Hello
    I have Implemented the Forms Based Authentication and manageing Roles on the
    Directories.
    If a User is not in Role on some Sub directory of my Web-Application, How
    can i show the Access Denied Custom Designed Page......
    At this time if a user is logon to my web application and want to access
    some directory by giving its path in URL it redirects it to logon page...I
    want to avoid this thing as user is allready login. and Application should
    show the Access Denied Message.
    i have defined

    <authorization>
    <deny roles="1" />
    </authorization>


    in the web.config file of the sub directory

    Thanks


    Malik Asif Joyia Guest

  2. Similar Questions and Discussions

    1. Access denied for user
      Hello everyone. I created a new user with the grant command and yet, I can't login into the database I must mention that the user was created but...
    2. access log doesn't show denied connects
      Hi All I have set up new adaptor with default virtual host on flash server. It has one application - sample videoconference from macromedia....
    3. MySQL Access denied for user - Plesk / FC 2
      I'm pulling my hair out and I've done all types of searches and I'm close to taking a sledge hammer to my server. I have Plesk 7.5, CFMX 7.01,...
    4. MX2004 User Authentication: Access Denied
      Hi, i am using the dreamweaver mx 2004 user authentication scripting...and it actually works, but very often users get an access denied url like...
    5. 401 Access Denied, but only for one user
      I've published a web service based on an authentication demo I found on the web. It resides on a domain controller, and the domain's Active...
  3. #2

    Default RE: How to show a Access Denied Page when User is not in Role?

    Did you find a solution to this problem - I have just run into the same thing today.

    Thanks

    Shaun

    "Malik Asif Joyia" wrote:
    > Hello
    > I have Implemented the Forms Based Authentication and manageing Roles on the
    > Directories.
    > If a User is not in Role on some Sub directory of my Web-Application, How
    > can i show the Access Denied Custom Designed Page......
    > At this time if a user is logon to my web application and want to access
    > some directory by giving its path in URL it redirects it to logon page...I
    > want to avoid this thing as user is allready login. and Application should
    > show the Access Denied Message.
    > i have defined
    >
    > <authorization>
    > <deny roles="1" />
    > </authorization>
    >
    >
    > in the web.config file of the sub directory
    >
    > Thanks
    >
    >
    >
    Shaun Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139