473,748 Members | 6,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1691
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**********@h otmail.comwrote in message
news:eB******** ******@TK2MSFTN GP03.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**********@h otmail.comwrote in message
news:eB******** ******@TK2MSFTN GP03.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**********@h otmail.comwrote in message
news:eB******** ******@TK2MSFTN GP03.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.c omwrote in message
news:OH******** ******@TK2MSFTN GP04.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
1571
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 file stops getting numbers added to it but the service is still running and no errors have been thrown. I'm quite sure that the code would catch an error and post it to the event viewer if one were arising. The only other relevant points I can...
1
4064
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 possible under the newer versions of Office to use the information already stored in Outlook as part of an Access database project. The logic being that the data could then be held in one place rather than two. This is a customer & order management...
2
1237
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 clicking IE and then browsing to it, everything works fine. however, when they click on the link from outlook, and log into our sites, 1/3 of the javaScript (the stuff that is called when the form submits, from JS that is pushed by...
6
3546
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 open? Thanks Dim objOutlook As New Outlook.Application Dim objMail As Outlook._MailItem = DirectCast(objOutlook.CreateItem(Outlook.OlItemType.olMailItem), Outlook._MailItem)
4
6690
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 HRESULT: 0x800706BA). The client has all the updates/service packs/ etc isntalled... Does anybody has any idea why this happens? Any help our hints would be really appreciated! what is that RPC server thing?
7
2610
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 are hit in my source code. The Addin isn't being loaded. If I create a new Addin program from scratch, e.g. AddIn1, it loads up fine from Outlook. I archived my existing code, cleared out the registry and recreated a brand new Addin project with...
6
1246
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 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?
9
12616
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 Outlook.Application Do I need to install Microsoft Outlook 9.0 Object Library? When I go to Tools-->references I checked off MS outlook 9.0 Object Library. Then it tell me it is missing MS outlook 9.0 Object Library. Appreciated if someone can give me some...
7
2450
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 a "type mismatch" error when trying to move the mailitem. Sub UnimportantMail() Dim myTargetFolder As MAPIFolder Dim myCurrentItem As Outlook.MailItem Set myCurrentItem = Application.ActiveExplorer.Selection Set...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.