A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Add In suddenly stops loading



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 12th 06, 12:08 PM posted to microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Pieter
external usenet poster
 
Posts: 27
Default Outlook Add In suddenly stops loading

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


Ads
  #2  
Old July 12th 06, 01:56 PM posted to microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Michael D. Ober
external usenet poster
 
Posts: 2
Default Outlook Add In suddenly stops loading

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" wrote in message
...
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






  #3  
Old July 12th 06, 03:17 PM posted to microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Add In suddenly stops loading

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" wrote in message
...
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


  #4  
Old July 13th 06, 11:59 AM posted to microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Pieter
external usenet poster
 
Posts: 27
Default Outlook Add In suddenly stops loading

Thanks, I'll take a look there :-)


  #5  
Old July 13th 06, 03:04 PM posted to microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 2
Default Outlook Add In suddenly stops loading


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.

--
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" wrote in message
...
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/de...asp?frame=true

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

  #6  
Old October 3rd 06, 05:08 PM posted to microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Rog
external usenet poster
 
Posts: 62
Default Outlook Add In suddenly stops loading

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.

  #7  
Old October 3rd 06, 11:46 PM posted to microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Add In suddenly stops loading

It should.

I haven't used shimming with 2.0, I write my addins mostly using VB 6 code
when I'm going to distribute them.

I'd start a new thread with that specific question as the subject and post
it only in the dotnet groups so people more expert in that area will pay
attention to it. If it's in this thread it might get ignored.

--
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


"Rog" wrote in message
...
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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Add In suddenly stops loading Pieter Outlook and VBA 6 October 3rd 06 11:46 PM
Prevent loading add-in programmatically Wouter Add-ins for Outlook 3 May 19th 06 07:34 PM
Outlook add-ins stop loading [email protected] Add-ins for Outlook 0 May 17th 06 12:24 AM
Outlook calendar stops responding/freezes Jubee Outlook - Calandaring 0 April 10th 06 03:17 PM
Changing my calendar items - suddenly I can't add, delete, or chan barb in NC Outlook - Calandaring 0 February 21st 06 05:48 PM


All times are GMT +1. The time now is 03:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.