Mar 25, 2014 07:10 AM|smirnov|LINK
Under what identity is your process running on the server? Most likely, that user does not have the correct rights to access your Active Directory.
The membership in the Windows Authorization Access Group is required to execute GetAuthorizationGroups.
See the following article: http://support.microsoft.com/kb/331951
Also you can try
PrincipalSearchResult<Principal> groups = up.GetGroups();
Hope this helps.