Hi
I am creating a service which connect to Microsoft Exchange server 2010 and get mail from inbox. I have written the code for that. But while connection it throw exception as:
The remote server returned an error: (440) Login Timeout.
However I have provided credential as required.
Any suggestion to resolve this issue.
Loading

Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jun 3, 2011, 12:25 AM EDT
You didn't establish a connection to the mail server.
You didn't establish a connection to the actual server.
Link1: Click Here
Link 2: Click Here
Bhanu Prakash9 reputationPosted Jun 3, 2011, 1:56 AM EDT
Here is my code. I am getting error on line in bold.
ExchangeService service = new ExchangeService();
service.Credentials = new NetworkCredential("xxxxx", "xxxx");
service.Url = new Uri("https://xxxxxx/owa/Exchange.asmx");
ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(delegate { return true; });
AuthenticateSecureOWA("mail.abc.com", "abc.com", "xxxxx", "xxxx");
ItemView IView = new ItemView(10);
service.FindItems("Inbox", IView);
Thanks
Suthish NairRank #92 · 22.8K reputationPosted Jun 3, 2011, 2:11 AM EDT
Bhanu Prakash9 reputationPosted Jun 3, 2011, 2:15 AM EDT
I have checked the credential by login manually. It is working fine.
Suthish NairRank #92 · 22.8K reputationPosted Jun 3, 2011, 2:21 AM EDT
Bhanu Prakash9 reputationPosted Jun 3, 2011, 2:28 AM EDT