401 generic error handler

Discussion in 'ASP .Net Security' started by ca, May 9, 2006.

  1. ca

    ca Guest

    Can anyone please help me directing me how to do this.

    I am trying to write a generic 401 error handler written in .net 1.1 which
    will fire when a user gets denied access to a .net application. This error
    handler page would detect the page/virtual application where the error
    occurred, check the web.config file for the groups allowed for access (the
    roles list). It would then display a page to the user stating that only
    those groups/rules are allowed to access that page or application. Can anyone
    please help me how to do this. I have no idea how to do this or where to
    start from. I have done this for one application. I have seen an example to
    fire for one application. Here is the url.
    http://www.codeproject.com/aspnet/Custon401Page.asp. But i want to do write a
    generic one so it will read all the applications setup on the site. Please
    help me. I need this immediately. Anyhelp would be greatly appreciated.
    ca, May 9, 2006
    #1
    1. Advertising

  2. windows or forms auth?

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > Can anyone please help me directing me how to do this.
    >
    > I am trying to write a generic 401 error handler written in .net 1.1
    > which will fire when a user gets denied access to a .net application.
    > This error handler page would detect the page/virtual application
    > where the error occurred, check the web.config file for the groups
    > allowed for access (the roles list). It would then display a page to
    > the user stating that only those groups/rules are allowed to access
    > that page or application. Can anyone please help me how to do this. I
    > have no idea how to do this or where to start from. I have done this
    > for one application. I have seen an example to fire for one
    > application. Here is the url.
    > http://www.codeproject.com/aspnet/Custon401Page.asp. But i want to do
    > write a generic one so it will read all the applications setup on the
    > site. Please help me. I need this immediately. Anyhelp would be
    > greatly appreciated.
    >
    Dominick Baier [DevelopMentor], May 10, 2006
    #2
    1. Advertising

  3. ca

    ca Guest

    windows authentication.

    "Dominick Baier [DevelopMentor]" wrote:

    > windows or forms auth?
    >
    > ---------------------------------------
    > Dominick Baier - DevelopMentor
    > http://www.leastprivilege.com
    >
    > > Can anyone please help me directing me how to do this.
    > >
    > > I am trying to write a generic 401 error handler written in .net 1.1
    > > which will fire when a user gets denied access to a .net application.
    > > This error handler page would detect the page/virtual application
    > > where the error occurred, check the web.config file for the groups
    > > allowed for access (the roles list). It would then display a page to
    > > the user stating that only those groups/rules are allowed to access
    > > that page or application. Can anyone please help me how to do this. I
    > > have no idea how to do this or where to start from. I have done this
    > > for one application. I have seen an example to fire for one
    > > application. Here is the url.
    > > http://www.codeproject.com/aspnet/Custon401Page.asp. But i want to do
    > > write a generic one so it will read all the applications setup on the
    > > site. Please help me. I need this immediately. Anyhelp would be
    > > greatly appreciated.
    > >

    >
    >
    >
    ca, May 10, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lloyd Dupont

    generic handler and text file

    Lloyd Dupont, Feb 4, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,745
    Highflyer
    Aug 11, 2007
  2. Murat Tasan
    Replies:
    1
    Views:
    8,040
    Chaitanya
    Feb 3, 2009
  3. Replies:
    2
    Views:
    434
  4. Rich Morey
    Replies:
    6
    Views:
    1,132
    Rich Morey
    Nov 4, 2008
  5. minlearn
    Replies:
    2
    Views:
    454
    red floyd
    Mar 13, 2009
Loading...

Share This Page