Will this work with .net 2.0? I had been using a Shim and it worked
great with .Net 1.1, but as soon as .net 2.0 came into the picture it
did not work anymore and I had to go to using regsvr32 which seems to be
causing this issue to happen for me.
Any suggestions?
Rog
Ken Slovak - [MVP - Outlook] wrote:
That sounds like your addin is using a shared application namespace with
various other Outlook addins. In that case any fault in any of the
addins will cause all of them to stop loading. A better solution is to
use a shim or VSTO to load the addin into its own application namespace
so it isn't affected by problems with other addins and problems with
your addin don't kill all other addins.
For information on shimming Outlook addins see the .NET information at
http://www.microeye.com/resources/res_outlookvsnet.htm.
You must handle all errors in your addin, as you indicate that you are
doing, plus you must release all of your Outlook objects at the correct
time so Outlook can close properly, and for .NET you might have to also
explicitly call the garbage collector and to release all of your COM
objects and then wait for the garbage collector to finish.