none
Custom role provider in a console application RRS feed

  • Question

  • 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

    Tuesday, May 21, 2013 5:10 PM

All replies