Consuming EWS Managed API in a Library RRS feed

  • Question

  • Good Day,

    I was exploring EWS Managed API and wrote a console application to consume it and understand hoe it works. I was able to establish connection with the Online Exchange Server and read the emails from Inbox. Until here it was all fine. But then I separated the code for consuming  EWS Managed API from the console app and wrote a dll named GetUnreadEmails. This dll was consumed by another dll named EmailListener. To test the functionality in EmailListner I wrote a console app. Everything runs smoothly untill my control reaches GetUnreadEmails.dll and tries to execute the following line of code:

    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);

    The control is not getting returned. There is no exception and the program keeps running but there is no reply from the line of code mentioned above. I hope you will be able to guide me through this issue.

    Thanks in Advance,


    Shridhar Runthala. 

    Tuesday, July 9, 2013 5:53 AM