UserPrincipal.GetAuthorizationGroups() Error

0

When I call this method I get a

COMException Exception from HRESULT: 0x80005000.

While using the debugger, I put the UserPrincipal variable in the QuickWatch and then execute GetAuthorizedGroups() the method succeeds. I am then able to continue running the application.

Any ideas?

Updated with code sample:

var groups = UserPrincipal.Current.GetAuthorizationGroups();
c#
active-directory
directoryservices
asked on Stack Overflow Jul 7, 2011 by Fernando • edited Jul 8, 2011 by Fernando

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0