Question

When creating a new MVC app and clicking "change authentication".

After choosing "multiple organisations" clicking finish and logging in with my Microsoft account (the one used for Azure) I receive the following error:

User credential verification failed.

Error: Value cannot be null.

Parameter name: entity

Any ideas?

The error is very generic so has proved tricky to find a hint of what to try next.

EDIT:

I have remembered that I have Update 2 RC installed, so it's possible it's just a bug in the pre release.

enter image description here

Was it helpful?

Solution

Ok, I believe I have the answer to the issue.. Seems like this login dialog lets you log in using the Azure AD accounts, but also using Microsoft's accounts. And if you log in using the Microsoft account, it will give this error (even if this MS account has full access to your Azure account).

The solution is to go to the Active Directory in Azure and create a brand new account, mark it as a Global Administrator, then use that to log in when prompted in Visual Studio.

Microsoft has a write-up on the issue, describing the steps to go around it here: http://www.cloudidentity.com/blog/2013/12/11/setting-up-an-asp-net-project-with-organizational-authentication-requires-an-organizational-account/

OTHER TIPS

Restart VS. So that you wont get the same error again and clears the logged in user. You would need a user with Global Admin Rights in your Azure AD to login again.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top