Access to Exchange 2010 (SP3) server in C# : 440 login timeout error RRS feed

  • Question

  • Hello,

    Iwant to retrieve data from an Exchange 2010 server (email, calendar,...).

    I'm using EWS Managed API 2.0.

    My code:

    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
    service.Credentials = new WebCredentials("myLogin", "myPwd","myDomain");
    service.Url = new Uri("https://xxxx/owa/Exchange.asmx");
    EmailMessage email = new EmailMessage(service);
    email.Subject = "Test";
    email.Body = new MessageBody("One two, one two, this is a test");

    But this code does not work...

    At the line "email.send();", an exception occurred : The resquest failed. Le serveur distant a retourné une erreur : (440) Login Timeout.

    I'm sure it's the good login...

    Have you got a solution ? I'm in a big company, and I don't have access to the Exchange Server (in India !)

    Thanks a lot,



    Monday, September 30, 2013 9:02 AM

All replies

  • Try this URL instead (using ews instead of owa)

    service.Url = new Uri("https://xxxx/ews/Exchange.asmx");

    OWA For SmartPhone

    Monday, September 30, 2013 9:50 AM
  • Oh ! It's working !

    Thank you a lot ! ;)

    Monday, September 30, 2013 10:08 AM