Exchange Web Services: UseDefaultCredentials property
问题 This Microsoft page indicates that by setting the UseDefaultCredentials property to true, no login name and password are required to communicate with the Exchange server. However, that is not my experience. My code creates an instance of ExchangeService called service: ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); If I manually set the credentials as follows, everything works just fine: service.Credentials = new WebCredentials("my@email.address", "my password");