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

    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.ToRecipients.Add("xx@xx.com");
    email.Subject = "Test";
    email.Body = new MessageBody("One two, one two, this is a test");
    email.Send();
    

    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,

    Regards,

    ZeTS.

    Monday, September 30, 2013 9:02 AM

All replies