Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Custom role provider in a console application

$
0
0

Hello,

I have written a role provider which assumes Windows authentication and so far works well with WCF services and ASP.NET. Is it possible to use it also with a console/WPF/WinForm applications? I tried a configuration like this on a very simple console app but the Initialize method of the provider doesn't even get called. Below is my app.config. Thanks in advance.

<configuration><system.web><authentication mode="Windows" /><roleManager enabled="true"
                     defaultProvider="Authorization.RoleProvider"><providers><clear/><add name="Authorization.RoleProvider"
                     type="Authorization.RoleProvider, Authorization.RoleProvider"
                     applicationName="urn:AuthorizationDemo:Program"
                     authorizationServiceUrl="net.pipe://localhost/Authorization/Authorization.svc"/></providers></roleManager></system.web></configuration>


Thanks Val


Viewing all articles
Browse latest Browse all 1710

Trending Articles