I'm getting above error message while connecting to Office365 .
ExchangeService serviceInstance = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
serviceInstance.Credentials = new WebCredentials("[email protected]", "Password", "REDMOND");
serviceInstance.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx");
foreach (EmailMessage email in serviceInstance.FindItems(WellKnownFolderName.Inbox, new ItemView(100)))
{
}
Both Username and Pwd are correct but still getting issue.
Kindly suggest.