Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Outlook Addin Error: Not loaded. A runtime error occurred during loading of COM add-in

I have created an VSTO Outlook addin. The configuration is as follows:

  • Visual Studio 2008
  • Office 2007 Outlook add in (3.5 Framework)
  • MSI created using Visual Studio Setup Project
  • Deployed to Office 2010 under windows 7

It works fine on the Dev PC however it fails to load once installed on the test machine. The outlook addin window shows a "Not loaded. A runtime error occurred during loading of COM add-in"

It is my understanding that I should not need to install any PIA as the Office 2007 PIA are part of Office 2010.

So far I have tried the following:

  • set VSTO_SUPPRESSDISPLAYALERTS however it does not show any messages when it tries to start.
  • configured Fuslogvw.exe (Assembly Binding Log Viewer) however it is not showing any binding errors.
  • set VTSO_LOGALERTS and it is logging all alerts however as none are shown this has not helped.

Is there anything I am doing wrong or need to do in addition to make this work?

like image 817
John Avatar asked Jul 09 '12 08:07

John


People also ask

Can't add add-ins in Outlook?

If you don't see the add-ins icon or you're unable to access the list of add-ins, then you'll need to check your add-ins status. To do this in Outlook, click on the File menu, and then click the button to Manage Add-ins (Figure C). Sign into Exchange or Office 365 with your email address and password.


1 Answers

Make sure you have the VSTO 3.0 Runtime installed on the test machine.

You will also need to install the VSTO 3.0 Runtime Service Pack 1 if you are running Visual Studio 2008 Service Pack 1.

VSTO 4.0 Runtime is not required in your situation because it is used with add-ins created with Visual Studio 2010. Please note that the version of VSTO and runtime generally must agree with the version of Visual Studio used to create the add-in.

like image 99
Les Avatar answered Oct 16 '22 10:10

Les