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

前端 未结 11 1551
臣服心动
臣服心动 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:15

    Let me point out that if you are trying to access Office 365 then the web credentials really are of the form WebCredentials(strUsername, strPassword); with strUsername being the email address of the account you are trying to access.

    I was getting this error and it turned out someone had changed the password on the account without informing me! What an odd error to get when it's just a bad password!

提交回复
热议问题