title: .NET: User.IsInRole not working from within Visual Studio
body: <p>I have a .NET MVC 4 application that uses Windows Authentication. I want to check whether the user is a member of a particular Active Directory group and if so, display an additional menu option:</p>
  
  <pre><code>            if(User.IsInRole("WellnessAdmins"))
              {
                  &lt;li&gt;
                      &lt;b&gt;@Html.ActionLink("Admin","Admin","Home")&lt;/b&gt;
                  &lt;/li&gt;
              }
  </code></pre>
  
  <p>When deployed to the server, this works fine; the Admin link is displayed. However, when I launch the application from Visual Studio, the Admin link is not displayed. My local computer and the server are on the same domain. Why this weird behavior?</p>