A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

My VSTO 3.0 Outlook addin doesn’t load



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 31st 09, 06:52 PM posted to microsoft.public.outlook.program_vba
Wayne
external usenet poster
 
Posts: 61
Default 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/libr...loband%29.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\Outloo k\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/1...in-doesnt-load )
Ads
  #2  
Old August 31st 09, 07:08 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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/2...-failures.aspx

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

--
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


"Wayne" wrote in message
...
[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/libr...loband%29.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\Outloo k\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/1...in-doesnt-load )


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VSTO outlook 2007 addin installation problem Nagaraj Add-ins for Outlook 1 July 24th 09 10:06 AM
can't load VSTO outlook addin outside visual... fbolefeysot Add-ins for Outlook 5 February 28th 08 03:31 PM
outlook addin setup problem - created using vsto suman Outlook - Using Forms 1 July 16th 07 11:11 PM
VSTO Outlook Addin doesn't get loaded for non-admin user Piyush Gupta Add-ins for Outlook 5 May 9th 07 08:24 PM
vsto 2005 se/outlook 2003 add-in doesn't load Rajesh Deshpande Add-ins for Outlook 3 May 3rd 07 11:33 PM


All times are GMT +1. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.