Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have an application that connects to Microsoft Exchange WebServer with appropriate credentials. Initially application gets connected and for the next time I need to check the connection status whether it is connected or not. Right now I use service.KeepAlive = true; But if the connection does not exists and if the flag is true, it goes wrong. So instead of connecting it again how can I check for the status and connect if the connection is not alive?

Thanks in advance

What I have tried:

C#
service.Credentials = new WebCredentials("uname","pwd");
service.AutodiscoverUrl("uname");
service.keepAlive=true;
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900