J'ai une application Windows Store (Win RT) et je dois obtenir le nom de domaine de l'utilisateur actuel. Voici mon code:Win RT: l'appelant n'a pas la capacité EnterpriseAuthentication
name = await Windows.System.UserProfile.UserInformation.GetDomainNameAsync();
Mais je reçois exception:
Win RT: Caller does not have the EnterpriseAuthentication capability
Ce que je dois faire pour y remédier, si je n'ai pas les périphériques physiques et travailler dans VS?
Cela renvoie true. – demas
Avez-vous activé la fonctionnalité d'authentification d'entreprise dans le manifeste? [sur les fonctionnalités] (http://msdn.microsoft.com/en-in/library/windows/apps/hh464936.aspx) – Ram
Merci, ça aide et je n'ai pas l'exception maintenant. Mais GetDomainNameAsync() renvoie la chaîne vide. Comment puis-je le réparer? – demas