473,598 Members | 3,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Outlook AddIn in vs2008 questions

Hi

I have a simple Outlook 2003 AddIn created using Outlook 2003 AddIn template
in vs 2008. The full code is given below at the end. I got warnings on
Interop assemblies as I have Office 2007 installed while AddIn is 2003 but
as I need to target both 2003 and 2007 I am sticking to lowest common
denominator.

I installed the AddIn by running the vs 2008 generated setup.

First problem is In Outlook Trust Centre->Add-Ins, my add in is in Inactive
list. How can I automatically make the AddIn active during Setup?

Secondly, when I tick my Add-In under COM Add-Ins and restart Outlook, it
still remains Inactive and under COM Add-Ins it says; Load Behaviour: Not
loaded. A runtime error occurred during the loading of the COM Add-In.What
is the problems or how can I debug this issue?

Many Thanks

Regards

Outlook 2003 AddIn Code
=============== ===

Public Class ThisAddIn

Private Sub ThisAddIn_Start up(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Startup
MsgBox("Startup ")
End Sub

Private Sub ThisAddIn_Shutd own(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Shutdown
MsgBox("Shutdow n")
End Sub

Private Sub Application_Ite mSend(ByVal Item As Object, ByRef Cancel As
Boolean) Handles Application.Ite mSend
MsgBox("Item Sent", , "My Outlook AddIn")
End Sub

End Class
Jun 27 '08 #1
1 2402
I think I may have cracked it.

I followed the steps in this video to cerate Code Access Security policy;
http://msdn2.microsoft.com/en-us/vbasic/cc338014.aspx

"John" <in**@nospam.in fovis.co.ukwrot e in message
news:%2******** *******@TK2MSFT NGP02.phx.gbl.. .
Hi

I have a simple Outlook 2003 AddIn created using Outlook 2003 AddIn
template in vs 2008. The full code is given below at the end. I got
warnings on Interop assemblies as I have Office 2007 installed while AddIn
is 2003 but as I need to target both 2003 and 2007 I am sticking to lowest
common denominator.

I installed the AddIn by running the vs 2008 generated setup.

First problem is In Outlook Trust Centre->Add-Ins, my add in is in
Inactive list. How can I automatically make the AddIn active during Setup?

Secondly, when I tick my Add-In under COM Add-Ins and restart Outlook, it
still remains Inactive and under COM Add-Ins it says; Load Behaviour: Not
loaded. A runtime error occurred during the loading of the COM Add-In.What
is the problems or how can I debug this issue?

Many Thanks

Regards

Outlook 2003 AddIn Code
=============== ===

Public Class ThisAddIn

Private Sub ThisAddIn_Start up(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Startup
MsgBox("Startup ")
End Sub

Private Sub ThisAddIn_Shutd own(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Shutdown
MsgBox("Shutdow n")
End Sub

Private Sub Application_Ite mSend(ByVal Item As Object, ByRef Cancel As
Boolean) Handles Application.Ite mSend
MsgBox("Item Sent", , "My Outlook AddIn")
End Sub

End Class


Jun 27 '08 #2

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

Similar topics

0
327
by: Samuel Bernard | last post by:
Hi, I created an addin for Outlook 2003. It creates a menu in Outlook in order to allow the user to access severals options of our Web site. I use MsiInstaller of MS to install this addin which has some assemblies, all installed into the folder of my application (C:\Programs\CompanyName\ProductName). On two XP Pro SP2 stations I didn't have problems: the installation ran well and the addin also. But on a third station (part of the...
1
586
by: Jon | last post by:
I want to send an email using the Outlook Redemption addin. 1. I ran their standard install.exe file. Does this register the dll on the system also or is that a seperate thing I have to do? 2. Does anyone have a sample piece of code of how to send a simple plain text email using this addin? I just can't seem to work it out. Thanks,
4
5992
by: Nathan Carroll | last post by:
Why am I able to use this in Outlook and not do the same from .Net. My problems centers around the Items in the xp version of below i used the interop references. Does something similar exist for 2000? 'this works fine in ol 2000 Dim item As Object Dim items As Outlook.items Dim itemcount As Integer Dim subfolder As MAPIFolder Dim mi As MailItem
0
2245
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way (using the python interpreter). But now, I want other poeple to use it to I want to freeze it for windows using py2exe and py2exe is giving me a headache. First, I cannot seem to be able to register my addin with the resulting executable. I've...
7
2603
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
8763
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook launches. I've wired up my event handler to each Menu item and toolbar button. (I use the same Event handler and I use the Tag property which is different for every Menu Item and Toolbar buton to determine which menu or button is being clicked and to...
6
1682
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?
1
2536
by: Christof Nordiek | last post by:
Hi all, I'm working on an Outlook-AddIn with VSTO 2005. I'd like to change the default namespace to something like "Componyname.Projectgroup.Addinname". But in the property page the default namespace input is disabled. Why is this so? And, how can I change the defaultnamespace used. thx Christof
5
2203
by: John | last post by:
Hi I have an Outlook add-in solution which includes a setup project. If I install the Outlook add-in by right clicking on the setup project and sleeting Install then the add-in gets installed fine in Outlook. However if I use the setup generated in the setup project Release folder then even though setup runs and finishes, the Outlook Add-in does not appear in Outlook. What is the problem and how can I fix it? Thanks
0
7987
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
8397
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8050
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
8264
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
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
3897
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2412
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

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.