title: using roles in asp.net with windows authentication
body: <p>I need to use the Roles.GetUsersInRole(role) method to get usernames that should receive an email when an event happens.
  I am using Windows authentication.</p>
  
  <p>In my web Config:</p>
  
  <pre><code>     &lt;system.web&gt; 
          &lt;authentication mode="Windows" /&gt;
          &lt;identity impersonate="false" /&gt;
          &lt;roleManager enabled="true"
                   defaultProvider="AspNetWindowsTokenRoleProvider"/&gt;
  ...
        &lt;/system.web&gt;
  </code></pre>
  
  <p>everything compiles fine however when I call that method I get this error:</p>
  
  <p>{"The configured Role Provider (WindowsTokenRoleProvider) relies upon Windows authentication to determine the groups that the user is allowed to be a member of. ASP.NET Role Manager cannot be used to manage Windows users and groups. Please use the SQLRoleProvider if you would like to support custom user/role assignment."}</p>
  
  <p>Is this a configuration issue?
  I need to continue to use windows authentication, however I also need to be able to get usernames from the groups.</p>
  
  <p>If there is no configuration setting to accomplish this is there any kind of work around that would get me this functionality?</p>
  
  <p>Thanks</p>