Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserPrincipal.Current.DisplayName causes invalid cast exception on login #7

Open
JBoman32768 opened this issue Feb 2, 2017 · 1 comment

Comments

@JBoman32768
Copy link
Contributor

When logging into Project Online from a WIndows 10 AzureAD joined machine UserPrincipal.Current.DisplayName produces exception

Unable to cast object of type 'System.DirectoryServices.AccountManagement.GroupPrincipal' to type 'System.DirectoryServices.AccountManagement.UserPrincipal'.

Looks like its trying to get the displayname for the user currently logged into the local computer - which in most cases is irrelevant to the login to the remote system.

@JBoman32768
Copy link
Contributor Author

Added Pull Request for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant