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

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

    try to use this:

    Service.Credentials = new WebCredentials("john", "12345678", "MYDOMAIN");
    

    NOT this one

    Service.Credentials = new WebCredentials("john@mail.com", "12345678", "MYDOMAIN");
    

    notice the username is 'john' NOT 'john@mail.com',It blocked me for quite a few hours for using the second one....

提交回复
热议问题