I have Metro style application in XAML/C# that shows the log on user information. I used method "GetDisplayNameAsync(),GetPrincipalNameAsync(),GetDomainNameAsync()",but it can only show my display name, and throws exception "access is denied" when show principal and domain name.
How can I call GetPrincipalNameAsync and GetDomainNameAsync without getting an access denied exception?
You need to declare the "Enterprise authentication" capability. See App capability declarations for a little more info.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.