hi,
here is the scenario: a user of our app is in ntdev domain, and his exchange server located at apj.cloudmail.microsoft.com. our backend api is deployed at the Azure servers at US West.
our api get 504 Gateway Timeout when calling the FindFolders API of exchangeService. does anyone know how to fix this issue? the following is the core code:
var
service = newExchangeService(ExchangeVersion.Exchange2010);
service.Credentials =
newNetworkCredential(username, password, domain);
service.AutodiscoverUrl(emailAddress, RedirectionUrlValidationCallback);
service.FindFolders(
WellKnownFolderName.Root, newFolderView(1));