Autodiscover Service couldn't be located with Modern Username and Password.
We switched from Basic to Modern on tenant. Autodiscover could not be located for O365 and Exchange server
Inner exception:
08:39:06 Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException: The Autodiscover service couldn't be located.
08:39:06 Source: Microsoft.Exchange.WebServices
08:39:06 StackTrace:
08:39:06 at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings[TSettings](String emailAddress, List1 redirectionEmailAddresses, Int32& currentHop) 08:39:06 at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings[TSettings](String emailAddress, List1 redirectionEmailAddresses, Int32& currentHop)
08:39:06 at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetLegacyUserSettings[TSettings](String emailAddress)
08:39:06 at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings(String emailAddress, List`1 requestedSettings)
08:39:06 at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(String userSmtpAddress, UserSettingName[] userSettingNames)
08:39:06 at Quest.AM.Autodiscover.EWSAutodiscover.ExecuteAutoDiscover(AutodiscoverService ewsService, String emailAddress, EWSAutodiscoverOptions options)
08:39:06 at Quest.AM.Autodiscover.EWSAutodiscover.DoAutodiscover(String emailAddress, String url, Boolean useScpLookup, NetworkCredential creds, String o365Provider, String connectionUri, EWSAutodiscoverOptions options, Int32 exchangeVersion, String overrideSettings, TimeSpan timeout)
08:39:06 at Quest.AM.Autodiscover.EWSAutodiscover.<>c__DisplayClass3_0.<DoAutodiscover>b__2()
08:39:06 at System.Threading.Tasks.Task.InnerInvoke()
08:39:06 at System.Threading.Tasks.Task.Execute()