Question

I am trying to create a new WebApi project in VS2103 and use Organizational Accounts for the authentication.

I have already created as Active Directory in Azure. When I try and connect to it in the WebApi wizard click OK, I am presented with the Azure login box, so I put in the Microsoft Account details for the admin of the Azure subscription the AAD belong to and I get an error message:

User Credential verification failed.
Error : Value cannot be null.
Parameter name : Entity

Anyone have any idea how to fix this?

Was it helpful?

Solution

I encountered this as well. To get past it, try the following:

  1. Shut down Visual Studio
  2. Go to your Azure management portal, and create a new user account within the Active Directory you created (I set mine as a Global Admin).
  3. Open up VS again and go through the steps of creating the WebApi project. This time, when you choose Organizational Accounts for authentication, use the credentials of the user that you just created - it should work now.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top