EWS Managed API is lying to me!

I have been working with Exchange Web Services(EWS) for a long time and this is the first time I saw that the EWS was lying to me! The code was executing a FindItem call on a list of folders and all of a sudden it threw the following error: “Error occurred: The request failed. The…


After installing KB 2553248, Outlook 2010 starts to crash when we open Meetings in the Calendar

Here’s a scenario we recently had reported: A customer running Outlook 2010 installs KB 2553248, and now Outlook crashes when they try to open meetings that were created using Exchange Web Services (EWS). In fact there are a few other scenarios where Outlook crashes: 1) Create a Meeting request using EWS and send it to…


Searching contacts using EWS Managed API 1.1 from PowerShell (Impersonation, SearchFilterCollection, ContainsSubstring)

Here is another example of using EWS Managed API with PowerShell 2.0. In this case the requirement was to be able to find out all contacts that have Hotmail email address in any of the Email Address fields. This provided me to opportunity to demonstrate the use SearchFilterCollection and ContainsSubstring search filter from a PowerShell…


Exchange 2007:Transport error when sending emails using TLS (0x80040213)

Error: “The transport failed to connect to the server”, Code:80040213, Source:CDO.Message.1. Does that look familiar? This was something that I kept running into while trying to send mail using CDOSYS with SSL/TLS enabled. Vikas already has a post explaining some of the details that you could refer to but there are some more finer points…


HOW TO: Configure Exchange 2007 and Exchange 2010 for using Impersonation

Exchange 2010: Configuring Exchange Impersonation (Exchange Web Services) http://msdn.microsoft.com/en-us/library/bb204095.aspx Using Exchange Impersonation XML Request/Response http://msdn.microsoft.com/en-us/library/bb204088.aspx Using Impersonation in EWS Managed API http://msdn.microsoft.com/en-us/library/dd633680(EXCHG.80).aspx Exchange 2007: Configuring Exchange Impersonation (Exchange Web Services) http://msdn.microsoft.com/en-us/library/bb204095(EXCHG.80).aspx Using Exchange Impersonation (Exchange Web Services) http://msdn.microsoft.com/en-us/library/bb204088(EXCHG.80).aspx ExchangeServiceBinding Class – Code Sample http://msdn.microsoft.com/en-us/library/exchangewebservices.exchangeservicebinding.aspx Enjoy!


HOW TO: List Top Level Folders in a Mailbox using EWS Managed API 1.0

Now that developers have started using Exchange Web Services Managed API, I thought it would be nice for me to post some samples to do simple things using the API. This sample shows: 1)How to list the Top Level folders in a mailbox. 2)Using Paging with the FolderView class. 3)Enabling logging of the Request and…