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();
User contributions licensed under CC BY-SA 3.0