473,387 Members | 1,455 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,387 software developers and data experts.

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_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
MsgBox("Startup")
End Sub

Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Shutdown
MsgBox("Shutdown")
End Sub

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

End Class
Jun 27 '08 #1
1 2390
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.infovis.co.ukwrote in message
news:%2***************@TK2MSFTNGP02.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_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
MsgBox("Startup")
End Sub

Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Shutdown
MsgBox("Shutdown")
End Sub

Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As
Boolean) Handles Application.ItemSend
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
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...
1
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....
4
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...
0
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...
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: 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...
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...
1
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...
5
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...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...

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.