title: MVC Windows Auth Not Working
body: <p>I have configured a MVC site to use windows authentication in the project properties and in the config file:</p>
  
  <p>WEB CONFIG</p>
  
  <pre><code>&lt;authentication mode="Windows"/&gt;
    &lt;authorization&gt;      
        &lt;allow users="domain_name\rbello"/&gt;
        &lt;deny users="?" /&gt;
    &lt;/authorization&gt;
  </code></pre>
  
  <p>View Controller</p>
  
  <pre><code> [Authorize (Users=@"domain_name\rbello, domain_name\svinstall")] 
   [Authorize(Roles = @"domain_name\administrators")]
          public ActionResult ForAdmin()
          {
             return View();
          }
  </code></pre>
  
  <p>When I run the code on my machine through IISExpress or when I deploy the site to IIS i get the login window but after I sign in I get an error stating "HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page"</p>
  
  <p>I made sure Windows Authentication is enabled in IIS features on the project as well as on the IIS server for Windows Authentication.  I also set NTLM as first provider as some had say to do.  Not sure what else I been at this for a couple days now, appreciate any help!</p>
  
  <p>.NET Framework 4.5
  IIS 7.5
  MVC 4</p>