473,385 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Jul 12 '06 #1
6 1659
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" <pi**********@hotmail.comwrote in message
news:eB**************@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


Jul 12 '06 #2
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" <pi**********@hotmail.comwrote in message
news:eB**************@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
Jul 12 '06 #3
Thanks, I'll take a look there :-)
Jul 13 '06 #4

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" <pi**********@hotmail.comwrote in message
news:eB**************@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/de...asp?frame=true

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

Jul 13 '06 #5
Rog
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.
Oct 3 '06 #6
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" <ro****@yahoo.comwrote in message
news:OH**************@TK2MSFTNGP04.phx.gbl...
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
Oct 3 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matt Rapoport | last post by:
I'm running an NT service with a thread. The thread performs a calculation every so often and appends the number to a text file. Every so often the thread just stops - or so it seems. The text...
1
by: Iain Miller | last post by:
Currently using & developing a new application in A97. This app has a lot of Name & Address information in it. A lot of that information will be duplicated in Outlook & I suddenly wondered if its...
2
by: Ryan Ternier | last post by:
We're having some weird errors with customers loading our web applications through Outlook (from a Notification email we send out). When a user from this organization uses our sites by double...
6
by: Barkster | last post by:
I'm trying to send using outlook but I get an error on the directcast line if I don't have outlook open. Works fine if it is open. What do I need to do to be able to send without having outlook...
4
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from...
7
by: Joseph Geretz | last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now, just a couple of days. Suddenly though, running my project in Debug launches Outlook as specified, but no breakpoints...
6
by: Pieter | last post by:
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...
9
by: CoCoCha | last post by:
Hi, I am trying to run a simple macro in excel vba to create a new email and attach two spreadsheets. But it won't work. It stops at the first line everytime. Dim objOutlook As...
7
by: BlackMustard | last post by:
hi all, i have used the following macro to move unimportant (i.e. non-work related) mail in my outlook inbox into a folder in personal folders. it has worked for a long time, but suddenly it gives...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.