title: Getting "The Server is not operational"
body: <p>I'm trying to get user groups in a web application:</p>
  
  <pre><code>private bool GetGroups(string userName, string domain, out string result)
   {
       PrincipalSearchResult&lt;Principal&gt; groups;
       PrincipalContext yourDomain =  = new PrincipalContext(ContextType.Domain, "fibi.corp");
       // find your user
       UserPrincipal user = UserPrincipal.FindByIdentity(yourDomain, userName);
              // if found - grab its groups
       if (user != null)
       {
         groups = user.GetGroups();
       }
    }
  </code></pre>
  
  <p>I'm getting </p>
  
  <blockquote>
    <p>"The Server is not operational"</p>
  </blockquote>
  
  <p>exception.
  I've noticed people were getting this when using the 'old' DirectoryEntry, but I'm using PrincipalContext.
  Any ideas?</p>