5
votes

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?

2
what version of vsto is installed on test machine?Brijesh Mishra
For what I had read it had intially suggested that 2010 comes with VSTO 3.0 installed. I had tried to install the 3.0 runtime however this would not install. I am goign to try the 2010 runtime microsoft.com/en-us/download/details.aspx?id=20479 as suggested by msdn.microsoft.com/en-us/library/ff937654.aspxJohn
think VSTO 2010 RT is required for office 2010 addinsBrijesh Mishra
Installing the 2010 runtime did not help make any difference.John
Are you sure the error isn't from the addin itself (like an unmanaged exception at startup) I have for ex, an addin that get disabled by office because of a timeout on an SqlConnection...mslliviu

2 Answers

8
votes

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.

0
votes

ere are a couple of usefull sites (I'm not going to copy and paste their advice on troubleshooting) http://www.ceptara.com/node/183

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