May 14 2020
01:45 AM
- last edited on
Jan 14 2022
04:31 PM
by
TechCommunityAP
May 14 2020
01:45 AM
- last edited on
Jan 14 2022
04:31 PM
by
TechCommunityAP
I've just started a O365 test account. With C# (code at the end below) I can successfully sign-in and can fetch folder names. No issues. However, the Sign-ins blade (https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/SignIns) shows as Failure with below details.
Why it shows as a Failure?
var ewsClient = new ExchangeService();
ewsClient.Credentials = new WebCredentials("myemail@mydomain.onmicrosoft.com", "mypassword");
ewsClient.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx");
var folders = ewsClient.FindFolders(WellKnownFolderName.MsgFolderRoot, new FolderView(100));
foreach (var folder in folders)
{
Console.WriteLine ($"Folder: {folder.DisplayName}");
}
May 16 2020 12:48 AM