I'm working with an existing application which is retrieves a Active Directory users Outlook Contact address book from Exchange and allows the user to send an e-mail to that user from their e-mail account.
It uses **MAPI33.DLL** version 5.5.2709.24765
I am running Exchange Server 2010 on Windows Server 2008 R2 SP2 x64. I have Office Pro Plus 2010 installed now also.
I do not have [
MAPI & CDO] installed because it is incompatible with Outlook.
Currently the below snippet always returns a SyncError which is code 2147500037.
Error hr;
MAPIINIT init = new MAPIINIT();
init.Flag = MAPIINIT.FLAGS.NoCoInit | MAPIINIT.FLAGS.NTService;
hr = MAPI33.MAPI.Initialize(init);
if (hr != Error.Success)
{
return false;
}
I've been scouring the internet for information but the results have been very sparse, the creators of MAPI33 website is not even up now.
Searching for the actual error code gave me some results for the MAPI error appearing when using Outlook, the suggested fix for this was setting Outlook to the [
default
mail client] and IE to [
default browser]. Currently Outlook has all it's defaults on my dev machine, as does Internet Explorer.
I did find several articles explaining [
why MAPI is kinda terrible] and how it's [
not
supported by Microsoft] but nothing I can tie into the error message I am receiving.
Does anyone know what could be causing this issue?