Return 504 Gateway TimeOut when access exchange service by domain/user and password

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));

April 11th, 2015 10:18pm

That doesn't sound like its an EWS issue more an issue with the Network path your trying to traverse to the Exchange Server. My suggestion is that you test EWS using the EWSeditor https://ewseditor.codeplex.com/ (eg it sounds like you may have proxy server that expecting authentication etc.).

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
April 13th, 2015 12:10am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics