ASP.NET Windows Role Provider (AspNetWindowsTokenRoleProvider) not noticing a user being added to a new group
<p>I am trying to create an application that uses <strong>&lt;authorization&gt;</strong> rules to limit the groups that are authorized to access the application. I am using Windows authentication and the Windows Role provider for ASP.NET (AspNetWindowsTokenRoleProvider). I am using local groups to define the roles, as the domain that I am developing on, and the domain that the app will eventually be deployed to will be different.</p>

<p>When I initially setup deployed my application to an IIS7 server, and I setup the site to use basic authentication, with the proper default domain, everything worked fine for the users that were already assigned to the authorized groups. However, when I attempted to add a new user to any of the authorized groups, this user was never authorized to access the application. I have done everything save for rebooting the machine. I restarted IIS as well as deleted all temporary files and cookies on the client side, to no avail.</p>

<p>It should be stated that this is an ASP.Net MVC app, though I didn't think that would really make any difference. Here are the pertinent entries from my web.config:</p>

<pre><code>&lt;!-- use windows authentication --&gt;
&lt;authentication mode="Windows" /&gt;

&lt;!-- use the Windows role provider --&gt;    
&lt;roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider" /&gt;

&lt;!-- global authorization rules --&gt;
&lt;authorization&gt;
    &lt;allow roles="admins,contractors"/&gt;
    &lt;deny users="*" /&gt;
&lt;/authorization&gt;
</code></pre>

<p>For instance, let's say we have a user, "Domain\joe", that is not currently a member of the local "admins" group, but we want to add him. We go add him, and then when Joe attempts to login, he sees an error that he is not authroized (after several failed login attempts). No amount of IIS restarts or having Joe delete his cookies and other temporary files will solve this issue.</p>

<p>Is ASP.Net keeping some kind of secret role/group cache? How do you go about adding a new user to a group and then ensuring that the role provider will see that the user was added to a group?</p>
