Random MAPI_E_CALL_FAILED Errors With Exchange 2010

We have gotten a number of cases lately involving applications using Outlook 2010’s MAPI failing when connecting to Exchange 2010 servers. The primary symptom observed by our customers is that random MAPI calls to Exchange return MAPI_E_CALL_FAILED. At first blush, there is no rhyme or reason as to which calls fail, except that all of…

13

The Elusive 0x81002746 Error

If you look around for it, you’ll find a lot of posts on a 0x81002746 error that you might get from ConfigureMsgService. But no one seems to know what the error really means or why it happens. I thought I’d fill in some details. For starters, this error has nothing to do with WSAECONNRESET, which…

2

Store Entry ID v2

As I intimated before, Outlook’s MAPI supports a special kind of store entry ID which allows you to encode the full DN for the server and avoid redirects. Here’s the documentation for it. An Exchange Store Entry ID encodes an Exchange server and mailbox for us in OpenMsgStore. The base version of this format is…

2

Call MrMAPI, That’s My Name, That Name Again Is MrMAPI!

I said yesterday that MrMAPI deserved a full post, so here it is. MAPI has a lot of property tags. You’ll find lists of them in the MSDN, and a number of them are documented in various and sundry KB articles. The problem with this documentation is that it’s of very little use when you’re…

6

Content Indexing and Search Folders

[This is now documented here: http://msdn.microsoft.com/en-us/library/cc842312.aspx ] I recently had a customer who noticed that their MAPI search folders weren’t updating properly when they moved to Exchange 2010. Their wasn’t anything complicated about the search criteria – they called SetSearchCriteria passing a RES_CONTENT type restriction looking for PR_MESSAGE_CLASS matching their item type. The search folder…

2

(Less Than) Portable Search Folders

Let’s have fun with the object model and search folders: Outlook running a profile in online mode. Create this macro: Sub TestAdvancedSearchComplete()     Dim sch As Outlook.Search     set sch = Application.AdvancedSearch(“Inbox”, “urn:schemas-microsoft-com:office:office#Keywords like ‘Test'”, True, “MySearchFolder”)     sch.Save (“MySearchFolder”) End Sub Run the macro, observe the folder. On the same machine, create a new…

5

May 2009 Release of MFCMAPI

The May 2009 Release (build 6.0.0.1013) is live: http://mfcmapi.codeplex.com. The coolest new feature has to be the addition of Smart View parsing to the Hex Editor. I actually had the idea to do this the morning I published the March 2009 release, but didn’t want to delay that release any longer. One side effect of…

0

Get The OOF Out Of Here

Dan asked if I could post some CDO sample code he was working on. This sample script demonstrates a few interesting things: Dynamic session creation Accessing the associated contents table of a folder using HiddenMessages Looping backwards through a collection so deletion doesn’t affect the cursor Accessing properties documented in the Protocol Docs (PidTagRuleMsgProvider and…

2

October 2008 Release of MFCMAPI

The October 2008 Release (build 6.0.0.1009) is live: http://www.codeplex.com/MFCMAPI Better late than never right? I’ve been trying to refresh MFCMAPI every two months, but wasn’t able to devote the time to it I would have liked with all the work I’m doing on the MAPI documentation refresh. I did need to get this release out…

0

Sending an Outgoing Message Requesting a Read Receipt With MAPI

[This is now documented here: http://msdn.microsoft.com/en-us/library/cc979231.aspx ] This is the third part of a three part series documenting the MFCMAPI sample add-in CreateOutlookItemsAddin. We’re in the process of updating the MAPI documentation and these articles are a preview of some of the new content. This article assumes you have downloaded the add-in from the above…

5