My VSTO 3.0 Outlook addin doesn’t load

  • Thread starter Thread starter Wayne
  • Start date Start date
Status
Not open for further replies.
W

Wayne

My VSTO 3.0 Outlook addin doesn’t load

[Sorry if this isn't the right forum for this... technically not VBA but this

is the closet forum I could find]

I'm trying to diagnose why my Outlook plugin written in C#/VSTO 3.0/VS 2008

doesn't load after being installed.

The plugin works awesomely on my development machine, which has Visual

Studio 2008 installed. I can't expect all my users to have all the

prerequisites though so I went through these steps to write an installer:

http://msdn.microsoft.com/en-us/library/cc563937(loband).aspx

I installed the add-in on a fresh Windows XP SP 2 machine with a fresh

install of Outlook 2007. It installs all the prereqs ok (.NET 3.5, VSTO 3.0

runtime, Windows Installer 3.1, 2007 PIAs). Outlook starts but the add-in

isn't run. If I go to the Add-ins tab in the Trust Center, I see my add-in in

the "Inactive Application Add-ins" section with the message "Not loaded. A

runtime error occurred during the loading of the COM Add-in.".

Not sure how to find the specific error so I can fix it.

The reg keys look ok. Under

HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\BlahAddin I see

Description, FriendlyName, LoadBehavior (set to 3 until it fails after which

if becomes set to 2), and Manifest.

Tried the VSTO_SUPPRESSDISPLAYALERTS environment variable trick and then

launched Outlook from the command line but no output came out.

I have remote debugging more or less working but I'm not sure what to look

for. I don't see my DLL loaded when I attach to Outlook, but then again maybe

managed DLLs don't show up the same way in VS.

Any other ideas on next steps I could follow to produce a specific error I

can diagnose?

Thanks!

(Cross-posted to Stack Overflow, but still haven't figured this out:

http://stackoverflow.com/questions/1330282/my-vsto-3-0-outlook-addin-doesnt-load )
 
Re: My VSTO 3.0 Outlook addin doesn’t load

Did you set the security? Without full trust a VSTO addin won't run.

If you did that and see the trust settings in the Framework configuration

tool you'd probably need to use Fusion logging and to study the logs to see

what's failing (Fusion is the managed code loader).

See

http://blogs.msdn.com/vsod/archive/2008/04/22/Troubleshooting-com-add-in-load-failures.aspx

There's also a managed forum specific to VSTO at the MSDN forums.

"Wayne" <Wayne> wrote in message

news:548727E5-5D76-42AC-A09E-CDED05868D50@microsoft.com...
> [Sorry if this isn't the right forum for this... technically not VBA but
> this
> is the closet forum I could find]

> I'm trying to diagnose why my Outlook plugin written in C#/VSTO 3.0/VS
> 2008
> doesn't load after being installed.

> The plugin works awesomely on my development machine, which has Visual
> Studio 2008 installed. I can't expect all my users to have all the
> prerequisites though so I went through these steps to write an installer:
> http://msdn.microsoft.com/en-us/library/cc563937(loband).aspx

> I installed the add-in on a fresh Windows XP SP 2 machine with a fresh
> install of Outlook 2007. It installs all the prereqs ok (.NET 3.5, VSTO
> 3.0
> runtime, Windows Installer 3.1, 2007 PIAs). Outlook starts but the add-in
> isn't run. If I go to the Add-ins tab in the Trust Center, I see my add-in
> in
> the "Inactive Application Add-ins" section with the message "Not loaded. A
> runtime error occurred during the loading of the COM Add-in.".

> Not sure how to find the specific error so I can fix it.

> The reg keys look ok. Under
> HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\BlahAddin I see
> Description, FriendlyName, LoadBehavior (set to 3 until it fails after
> which
> if becomes set to 2), and Manifest.

> Tried the VSTO_SUPPRESSDISPLAYALERTS environment variable trick and then
> launched Outlook from the command line but no output came out.

> I have remote debugging more or less working but I'm not sure what to look
> for. I don't see my DLL loaded when I attach to Outlook, but then again
> maybe
> managed DLLs don't show up the same way in VS.

> Any other ideas on next steps I could follow to produce a specific error I
> can diagnose?

> Thanks!

> (Cross-posted to Stack Overflow, but still haven't figured this out:
> http://stackoverflow.com/questions/1330282/my-vsto-3-0-outlook-addin-doesnt-load )
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
N VSTO outlook 2007 addin installation problem Outlook VBA and Custom Forms 1
E Opening WinForm in Outlook 2003 VSTO Addin with Wordmail enabled Outlook VBA and Custom Forms 1
M c# vsto Outlook.ApplicationEvents_11_NewMailEx Outlook VBA and Custom Forms 1
A Not able to load an add-in for outlook 2007 developed in VSTO 2005 Outlook VBA and Custom Forms 2
T VSTO Outlook add-in: Categories not displaying correctly Outlook VBA and Custom Forms 3
O VSTO - Outlook Add-In - Get GAL data Outlook VBA and Custom Forms 1
K Outlook VSTO Add-in not visible in Trust Center after installing Outlook VBA and Custom Forms 1
M Will a VSTO C# Outlook 2007 Add-in work on Outlook 2010? Outlook VBA and Custom Forms 1
X Highlight block of text in an outlook mail using c#2008 vsto Outlook VBA and Custom Forms 1
O Third-party VSTO 2005 SE plug-in for Outlook 2007: what should I signwith a publisher certificate? Outlook VBA and Custom Forms 3
O Outlook VSTO 2005 plug-in installer: CLSID = ? Outlook VBA and Custom Forms 3
M Develop for OL2003 on OL2007 machine using VS2008 and VSTO? Outlook VBA and Custom Forms 1
E VSTO 2008 how to bind Form Region controls to Item data fields Outlook VBA and Custom Forms 2
E VSTO 2008 how to bind Form Region controls to Item data fields Outlook VBA and Custom Forms 3
M VSTO deployment? Outlook VBA and Custom Forms 1
M VSTO C#: How do I declare an application scope variable? Outlook VBA and Custom Forms 2
S VSTO calling unmanged function Outlook VBA and Custom Forms 3
G Interop or VSTO or ? Outlook VBA and Custom Forms 2
M VSTO 2007 Addin auto-disabled on one machine but not another on installation? Outlook VBA and Custom Forms 1
O using VSTO to get Available Mailboxes Outlook VBA and Custom Forms 11
M Outlook2007 and VSTO, handle the Click on the Save Button in the IPM.Note dialog HOWTO? Outlook VBA and Custom Forms 4
M VSTO Outlook2007 Addin. After switching from 3.5 to 2.0 Framework i get "'MSB3185: EntryPoint not sp Outlook VBA and Custom Forms 1
C Problem installing VSTO AddIn on Vista Outlook VBA and Custom Forms 3
C I don't understand Outlook or Microsoft, anymore Using Outlook 4
P My Feedback to Microsoft and their response; also New Outlook roadmap Using Outlook 0
A New Outlook - Cannot drag IMAP emails to Task List in MyDay Using Outlook 1
L Android Outlook Doesn't Update PC Notification Changes Using Outlook 0
A How to open Excel file saved in Outlook folder? Outlook VBA and Custom Forms 4
D.Moore Outlook desktop client suggested searches question Using Outlook 23
Y Outlook 2016 (64-bit) Copy Local Cal. Events to Another Cal. with Modified Reminder time Using Outlook 2
T Outlook 2019 While connecting an IMAP account in "classic" Outlook 2024 I caused a massive duplication of emails on the server (death loop) Using Outlook 5
D Cannot logon to Outlook.com, or outlook on Mac, outlook not updating on ipad, iphone Using Outlook 1
J unable to get my new install of Outlook to display mailboxes in the single-line format. Using Outlook 1
D Legacy Microsoft Outlook for Mac Support will end in Oct 2025 Using Outlook 5
C Nasty Bug Lurking In Outlook For Years. The Trigger. Any Fix Or Workaround? Using Outlook 11
R Auto clicking Hyperlink in outlook Outlook VBA and Custom Forms 7
ughlook Open multiple contacts in NEW Outlook? Using Outlook 3
G Outlook translation feature is off Using Outlook 2
J Outlook 2010 does not let me put any account Using Outlook.com accounts in Outlook 3
P 3 of 5 PST files don't install from d:\outlook but only from D:\ Using Outlook 7
HarvMan January Windows 10 preview update force installs new Outlook Using Outlook 1
L Outlook 2010 - new installation on Windows 11 - aplzod32.dll is not a valid Add-in Using Outlook 12
J Outlook troubleshooting/logging - option grayed out Using Outlook 2
B Arrows missing from Outlook emails vertical scrollbar Using Outlook 0
G Outlook 2021 (New) doesn't respect default browser Using Outlook 9
B Outlook or iPhone turning tabs into spaces in Outlook Notes Using Outlook 1
P newly installed Office 365 includes OLD Outlook Using Outlook 6
R Outlook ribbon menu default? Using Outlook 7
H Spam email in Gmail not visible in Outlook Using Outlook 3
J How to transfer Win 10 Outlook to new Windows 11 pc? Using Outlook 16

Similar threads

Back
Top