IanMadz

Hi guys,

I've recently developed and deployed a VSTO add-in based on the guidelines stated in 'Outlook Customization for Integrating with Enterprise Applications' (http://msdn2.microsoft.com/en-us/library/aa479345.aspx#otlkcustinentapp_topic9).

The issue I face is if the add-in is running and microsoft CRM add-in is also running, CRM add-in crashes.

the aforementioned doc does mention the following:

Note The approach described in this section might present problems when multiple add-ins are loaded into one instance of Outlook because it requires that components of the solution load into the default application domain. Another add-in that also loads components into the default application domain could conflict with your add-in and cause Outlook instability. For this reason it is not recommended that you use this approach for desktops that have multiple managed add-ins installed in Outlook.

have any of your guys come across this or found a workaround. Would the old style com add-in shimming work maybe since they used to have issues with mulitple add-in's being loaded into the default app domain.

Cheers

Ian



Re: Visual Studio Tools for Office Multiple Outlook Add-in conflicting any help would be great!

Phil Hoff - MSFT

VSTO add-ins should be able to happily live alongside each other. However, they all respond to the same events fired by Outlook, so there's still the possibility that their event handlers indirectly interfere with each other (e.g. one add-in's handler deletes an item before the other add-in's handler has a chance to do something with it).

That specific note in the CRM sample refers only to their method of hosting WinForms controls in a folder home page. Because they allow IE to instantiate the control directly, they are created in the default AppDomain and this is where the potential for conflict can occur. Another add-in could do the same and then you'll have components from multiple add-ins in the same default AppDomain, which could more directly interfere with each other.

Is your add-in also hosting controls in a folder home page It would be helpful to know more about the circumstances of the crash of the CRM add-in.

-Phil





Re: Visual Studio Tools for Office Multiple Outlook Add-in conflicting any help would be great!

IanMadz

Hi Phil

Yes i am hosting controls in a folder home page in the same mannor as the CRM sample.

having examined the event viewer this is the error recorded for the CRM add-in:

The Microsoft CRM command bar could not be loaded into Microsoft Outlook. Restart Microsoft Outlook and try again. HR=0x80004005. Context=. Function=CAddin::HrInitializeUI. Line=160.

My add-in continues to works. But the CRM add-in does have any items clickable and is unable to load the home pages.

Any thoughts

Ian





Re: Visual Studio Tools for Office Multiple Outlook Add-in conflicting any help would be great!

IanMadz

Infact i've just this second stepped through the code and found that my add-in is now throwing

DisconnectContext exceptions frequently. This does not happen when the CRM add-in is not running.

However strangely enough they are both running correctly together. But that isn't always the case!!!

Ian