Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook Add In suddenly stops loading

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Outlook Add In suddenly stops loading
"Pieter" <pietercoucke[ at ]hotmail.com> 12.07.2006 10:08:06
Hi,

I developed an Outlook Add In (VB.NET 2005, for Outlook 2003) that sometimes
suddenly stops loading. I've put everywhere in the code Exception Handlers,
but no Exception is catched.
it seems that other add ins aren't loaded afterwarths (nod32).

Does anybody know a way to find out why an outlook add could do this? and
find out after the problem what caused the problem?

Any help our hints would be really apreciated, thanks a lot in advance,

Pieter


Re: Outlook Add In suddenly stops loading
"Michael D. Ober" <obermd.[ at ].alum.mit.edu.nospam> 12.07.2006 11:56:27
Sounds like it crashed on a load. In Outlook, there is an option to reset
the add-ins. If you can't find it, repost your question to an Outlook
newsgroup.

Mike Ober.

"Pieter" <pietercoucke[ at ]hotmail.com> wrote in message
news:eBgyTsZpGHA.1440[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> Hi,
>
> I developed an Outlook Add In (VB.NET 2005, for Outlook 2003) that
sometimes
> suddenly stops loading. I've put everywhere in the code Exception
Handlers,
> but no Exception is catched.
> it seems that other add ins aren't loaded afterwarths (nod32).
>
> Does anybody know a way to find out why an outlook add could do this? and
> find out after the problem what caused the problem?
>
> Any help our hints would be really apreciated, thanks a lot in advance,
>
> Pieter
>
>
>



Re: Outlook Add In suddenly stops loading
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 12.07.2006 13:17:38
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Pieter" <pietercoucke[ at ]hotmail.com> wrote in message
news:eBgyTsZpGHA.1440[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> Hi,
>
> I developed an Outlook Add In (VB.NET 2005, for Outlook 2003) that
> sometimes suddenly stops loading. I've put everywhere in the code
> Exception Handlers, but no Exception is catched.
> it seems that other add ins aren't loaded afterwarths (nod32).
>
> Does anybody know a way to find out why an outlook add could do this? and
> find out after the problem what caused the problem?
>
> Any help our hints would be really apreciated, thanks a lot in advance,
>
> Pieter
>

Re: Outlook Add In suddenly stops loading
"Pieter" <pietercoucke[ at ]hotmail.com> 13.07.2006 09:59:31
Thanks, I'll take a look there :-)


Re: Outlook Add In suddenly stops loading
richard_jonas_news[ at ]hotmail.com 13.07.2006 13:04:22

Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> 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.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Pieter" <pietercoucke[ at ]hotmail.com> wrote in message
> news:eBgyTsZpGHA.1440[ at ]TK2MSFTNGP03.phx.gbl...
> > Hi,
> >
> > I developed an Outlook Add In (VB.NET 2005, for Outlook 2003) that
> > sometimes suddenly stops loading. I've put everywhere in the code
> > Exception Handlers, but no Exception is catched.
> > it seems that other add ins aren't loaded afterwarths (nod32).
> >
> > Does anybody know a way to find out why an outlook add could do this? and
> > find out after the problem what caused the problem?
> >
> > Any help our hints would be really apreciated, thanks a lot in advance,
> >
> > Pieter
> >

I had an add-in that suddenly stopped loading. This was because I had
upgraded the client machine to Windows XP Service Pack 2, which
introduces new security features. One of these is that a non-trusted
add-in won't run by default.

If you use the outlook shim solution as Ken suggested, the add-in is
given certificates and trusted. I used the guide here to set this up.
There's a lot to do, but if you follow the instructions carefully it
does work.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_comshim.asp?frame=true

Regards
Richard
http://www.richardjonas.com/blog

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net