Unable to connect to Microsoft Exchange Server while registering OutlookItemsEvents

Add-in Express™ Support Service
That's what is more important than anything else

Unable to connect to Microsoft Exchange Server while registering OutlookItemsEvents
Exception thrown when ConnectTo method of OutlookItemsEvents is called. Exception reads as follows:- The Microsoft Exchange Server computer is not available. Either there are network problems or the Microsoft Exchange Server computer is down for mainten 
Indranik Ray




Posts: 4
Joined: 2010-11-26
Hi,

We are using Add-in Express 2009 for Outlook 2003.

In adxOutlookEvents_Startup event of AddinModule we are registering OutlookItemsEvents by calling ConnectTo method.

This is the code:-
OutlookItemsEvents eventObject = new OutlookItemsEvents(this);
eventObjectList.Add(eventObject);
eventObject.ConnectTo(mapiFolder, true);

But we are getting an exception:-

The Microsoft Exchange Server computer is not available. Either there are network problems or the Microsoft Exchange Server computer is down for maintenance. at Microsoft.Office.Interop.Outlook.MAPIFolder.get_DefaultItemType()

Thanks.
Posted 03 May, 2011 04:03:37 Top
Eugene Astafiev


Guest


Hi Indranik,

Please try to use the AddinStartupComplete event of the add-in module class instead. Does it help? Do you still get the exception?
Posted 04 May, 2011 02:29:54 Top