SharePoint online error We are sorry but email can not be found in the site name directory visual studio 2015

In this post we will discuss how we can resolve the below login error in visual studio 2015 in SharePoint online (Download PDF for FREE). While developing a SharePoint hosted add-in using visual studio 2015, we are trying to login in the Connect to SharePoint dialog box. Next time when I open the visual studio 2015 solution it ask to connect to the SharePoint online developer site like below:

SharePoint online error We are sorry but email can not be found in the site name directory visual studio 2015
SharePoint online error We are sorry but email can not be found in the site name directory visual studio 2015



Once I put the credential it gave the below error screen.

Also read some SharePoint online tutorials:
How to update app registration in SharePoint online site?

How to add lookup column programmatically using csom in SharePoint online Office 365?

Add or remove licenses in Office 365

That didn’t work.
We’re sorry, but username@someting.onmicrosoft.com can’t be found in the something.sharepoint.com directory. Please try again later, while we try to automatically fix this for you.

SharePoint online error We are sorry but email can not be found in the site name directory visual studio 2015
SharePoint online error We are sorry but email can not be found in the site name directory visual studio 2015

Solution:
Close the Visual Studio 2015 solution and log out with current session and again enter credentials by adding different credentials (Option one).

Hope this will be helpful.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>