'Autodiscover service couldn't be located' when trying to access Exchange 2010 account with EWS MANAGED API

前端 未结 11 1543
臣服心动
臣服心动 2020-12-28 12:32

I am using Auto discover service Url for a specified e-mail address.

ExchangeService Service = new ExchangeService(ExchangeVersion.Exchange2010);
Service.Cr         


        
11条回答
  •  伪装坚强ぢ
    2020-12-28 13:25

    Faced this issue for specific user. After checking I found that user has enabled two factor authentication and using his primary password for connection. Solved by generating app specific password and connecting with it. Disabling two factor also worked, but it will take some time to reflect. Not sure why exchange gave "The Autodiscover service couldn't be located." instead of "Unauthorised".

提交回复
热议问题