Outlook - can't load VSTO outlook addin outside visual...
Asked By fbolefeysot
19-Feb-08 09:16 AM

I'm developping an outlook addin using VSTO
I have visual studio 2005 & outlook 2007
I used the VSTO outlook addin wizard to develop my addin
My addin works, I can debug it from within visual studio (it starts outlook
and loads my addin)
But when I try it 'alone' on the same computer, it does not work. My
installer is the one created by the VSTO outlook addin wizard.
- I execute the addin installer (setup.exe), and setup is done with no error
- I start outlook, and I don't see the splash screen that tells me My addin
has been loaded...
- when I have a look at outlook complements, it tells me my addin is
inactive because off an execution error during the COM complement loading.
I can't deploy it on another computer either...
What's the problem ?
I saw some docs (http://msdn2.microsoft.com/en-us/library/bb332052.aspx)
about prerequisities needed (office 2003 / 2005 primary interop assemblies
and tools for office runtime), but if I can debug my addin from within
visual, it means I already have them no ?
Is it a security problem ?
I tried to follow all instructions found in the doc, and here are the
problems I met :
- can't find wanted prerequisites in the list given by the addin setup
project
- error when trying to install the addin after having set the security stuff
not valid
thanks
Outlook 2007
(1)
Outlook
(1)
Vista
(1)
VSTO
(1)
LoadBehaviour
(1)
SetSecurity
(1)
Reminders
(1)
Shneerson
(1)
Ken Slovak - [MVP - Outlook] replied...
Answered in the original group you posted in. Read both deployment articles
and follow every step as if your life depended on it. Otherwise the addin
will never load.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
fbolefeysot replied...
please read the end of the message, I added more info on problems I had
following the doc steps.
ie :
Ken Slovak - [MVP - Outlook] replied...
Again, read and follow the deployment articles exactly. The problems you are
seeing are from not following every single step of the articles exactly.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
thl100 replied...
Hi Ken,
i have the same problem and i followed the deployment articles...
While Outlook ist starting up, the registry entry "LoadBehaviour" changes
from "3" to "2" and the add-in does not load.
Please help...
Thanks
Thomas
Ken Slovak - [MVP - Outlook] replied...

How can I help with that as the information provided?
Have you verified that on the target machine that all the requirements are
installed (VSTO runtime, PIA's, dependencies, correct version of the
Framework, extensibility.dll, stdole.dll, etc.)?
Have you used the Framework configuration utility to verify that the CAS was
set up correctly and is granting full trust to your assembly? Have you
strong named the assembly?
In the SetSecurity project are you creating the custom actions mentioned in
the deployment articles?
Is this on Vista? Do you deploy the revised version of the VSTO runtime that
fixes some Vista problems? If on Vista does it work if you toggle the
setting for UAC? If so you might need to install to HKLM instead of to HKCU
depending on the UAC settings. See the Misha Shneerson blog article about
installing VSTO addins to HKLM.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
unable to export Outlook 2007 address book email address Outlook We are using Vista Outlook 2007 in our office. We use the address book inside the Outlook 2007 to set the outgoing email address. In the Outlook 2007, we try to export the
Saving attachments to folder from public folder Outlook Hey there! I am currently working on a project that involves merging data from many into one Excel workbook for analysis. The csv files are sent to a public folder (outlook: \ Public Folders \ All Public Folders \ etc. . .) I thought the easiest way to do this would be to import the data straight from Outlook to the Excel file but after much painful testing I could not get it to main mailbox folders, not public and am unsure why. . . I have almost no experience with Outlook coding so any help is appreciated! This is the current code: If there is a instead of using a selection, that is fine too! Public Sub SaveAttachments() Dim objOL As Outlook.Application Dim objMsg As Outlook.MailItem 'Object Dim objAttachments As Outlook.Attachments Dim objSelection As Outlook.Selection Dim i As Long Dim lngCount As Long Dim strFile As String Dim strFolderpath
Handling application.quit event Outlook Hello, i am developing an exe application and i use global object to declare outlook application withevents. I use outlook 2007 sp2 and i am having trouble releasing my variable references or reusing then. I use this code : Public Class StartOE Private WithEvents o As Outlook.Application = Nothing Private ns As Outlook.NameSpace = Nothing Private omFolder As Outlook.MAPIFolder = Nothing Public Sub New() If detectOutlook() Then o = GetObject(, "Outlook.Application") Else o = New Outlook.Application End If Try ns = o.GetNamespace("MAPI") ' get namespace
Problem seeing some characters when sending email to Outlook client Outlook Using VB6, I am sending an HTML email using SMTP. I am having a problem like a bullet point that looks like an arrow) thru email that is received in Outlook. The weird thing is some Outlook client can see the arrow fine, some can not. My Outlook 2003 used to be able to see the arrow ok, but now it does not Some Outlook 2007 can see it ok, some cannot. I can see the arrow fine in Gmail. This a problem with: = E2 = 96 = BA That arrow character becomes this in some of the Outlook client: – Thank you for your help. This is my code: Set poSendMail = 3D New clsSendMail
Looking for good email program? Outlook Hi forum members, This is the first time I have posted at this forum, and to an excellent internet / web based email. With Microsoft, it appears I have two choices, Outlook, or Outlook Express. Up front I am stating, not interested in all the bells and whistles that that exists, whether it is free, or, I have to pay for it. So, between Outlook and Outlook Express, what are the pros and cons about one versus the other? Please do not about the stuff I have stated I am not interested in. Simply want to compare Outlook vs Outlook Express's email program and how either will serve me best. My needs: 1 - I do not waste anybody's time with stuff that is not relevant to my question. Outlook or Outlook Express? For EMAIL PURPOSES. One or the other, Why vs Why Not? After