Authorization with custom role provider

Discussion in 'ASP .Net' started by =?Utf-8?B?QXJuZQ==?=, Aug 17, 2007.

  1. I want to implement my own role Provider, by subclassing the RoleProvider
    class.
    How do I instruct .net 2.0 to use my role provider?

    --
    Arne Garvander
    Certified Geek
    Professional Data Dude
    =?Utf-8?B?QXJuZQ==?=, Aug 17, 2007
    #1
    1. Advertising

  2. Hi Arne,
    you will register your new provider in web.config file as follows:

    <roleManager enabled="true" defaultProvider="myNewProvider">
    <providers>
    <clear />
    <add name="myNewProvider" type="MyNamespace.MyProvider, MyLibrary,
    Version = 1.0.0.0, Culture=neutral, PublicKeyToken = null" ... />
    </providers>
    </roleManager>

    Regards,
    Ladislav

    "Arne" wrote:

    > I want to implement my own role Provider, by subclassing the RoleProvider
    > class.
    > How do I instruct .net 2.0 to use my role provider?
    >
    > --
    > Arne Garvander
    > Certified Geek
    > Professional Data Dude
    =?Utf-8?B?TGFkaXNsYXYgTXJua2E=?=, Aug 17, 2007
    #2
    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. =?Utf-8?B?QmVuIFIu?=

    debug a custom membership and role provider?

    =?Utf-8?B?QmVuIFIu?=, Mar 27, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    3,802
    =?Utf-8?B?dWxyaWNoIHNjaHVtYWNoZXI=?=
    May 17, 2006
  2. CK

    Custom Role Provider

    CK, Jul 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    5,054
    Winista
    Jul 25, 2006
  3. Alias
    Replies:
    5
    Views:
    654
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Feb 18, 2007
  4. Tom Van den Brandt

    Custom role provider not working

    Tom Van den Brandt, May 31, 2007, in forum: ASP .Net
    Replies:
    8
    Views:
    5,513
    rwiethorn
    Jun 11, 2007
  5. sloan
    Replies:
    1
    Views:
    490
    Chad Scharf
    Jul 3, 2007
Loading...

Share This Page