Hello Team,
I need to display all the active contacts along with Email Ids (It should also display all distribution lists.) in list in c# using aspose email product,
Please share the sample code.
Hello Team,
I need to display all the active contacts along with Email Ids (It should also display all distribution lists.) in list in c# using aspose email product,
Please share the sample code.
For Exchange Server 2007 and above, you can use the API’s IEWSClient for connecting to Exchange server and retrieve the desired information you have mentioned. Please have a look at our following documentation sections for working with Contacts and Distribution lists on Exchange Server and let us know if you need any further assistance in this regard.
We need to do fetch details from office 365 exchange server.
You can [connect to Office 365 Exchange Server ](https://docs.aspose.com/display/emailnet/Connecting+to+Exchange+Server#ConnectingtoExchangeServer-ConnectingtoExchangeServerusingEWS)
using the API and retrieve the list of contacts and distribution lists as mentioned in earlier reply. For connecting to Office 365 Exchange server, please use the following Exchange Server URI:
[https://outlook.office365.com/ews/exchange.asmx ](https://outlook.office365.com/ews/exchange.asmx)
Hi team,
I want to know how i get connection failure exception while connecting or retrieving mails from Exchange Server.
I want to handle connection failure exception, can you share some sample code to do that.
I request you to please provide a working sample along with stack trace of exception incurring on your end. We will analyze the requirements and will help you further in this regard.
There is no issue with that , for my project i want to show connection failure message in my GUI , So how to do i get that message.
I suggest you to please visit following thread link which has similar response as requested by you.
sir i want to know how do i distinguish between connection failure exception and invalid credentials in exchange server, is connection failure exception class is different from unauthorized user exception class in exchange server.
You can catch these exceptions on your end and handle them accordingly using simple test. You may unplug the Ethernet from your machine and connection failure exception will be thrown that you may catch on your end.
i have already done that you are saying, but the problem is that it throws different exceptions in case of connection failure , so can i catch only exception class which throws at the time of connection failure, can you share that exception class name , it would be really helpful for me.
We are working on details you have requested and will get back to you as soon as possible.