G Guest 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?
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?
G Guest Aug 17, 2007 #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
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