title: Unable to cast object of type in System.DirectoryServices.AccountManagement.GroupPrincipal
body: <p>I am Using Method <code>UserPrincipal.Current.ToString()</code> in Domain to Get Current Logged in Domain User with Valid Domain. but when i am Displaying it in a string its giving Error when hosted in IIS Server: </p>
  
  <pre><code>Unable to cast object of type 'System.DirectoryServices.AccountManagement.GroupPrincipal'
             to type 'System.DirectoryServices.AccountManagement.UserPrincipal'.
  </code></pre>