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
Bhanu PrakashPosted Jun 3, 2011, 6:28 AM
Suthish NairPosted Jun 3, 2011, 6:21 AM
Bhanu PrakashPosted Jun 3, 2011, 6:15 AM
I have checked the credential by login manually. It is working fine.
Suthish NairPosted Jun 3, 2011, 6:11 AM
Bhanu PrakashPosted Jun 3, 2011, 5:56 AM
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
Jiteendra SampathiraoPosted Jun 3, 2011, 4:25 AM
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