Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User credential verification failed when configuring Visual Studio MVC authentication

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

like image 600
Alex KeySmith Avatar asked Dec 20 '22 15:12

Alex KeySmith


2 Answers

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/

like image 175
Artiom Chilaru Avatar answered May 15 '23 22:05

Artiom Chilaru


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.

like image 42
Blue Clouds Avatar answered May 15 '23 20:05

Blue Clouds