VSTO - Outlook Add-In - Load behaviour: Not loaded

Hello again.

I've developed an Outlook Add-In, based on the Visual Studio template installed with VSTO. As far as I know, the solution is built as "best practise". On my development laptop, my Add-In work as intended, both when running (debugging) directly from VS, AND after installing it the proper way with my Add-In Setup project. My Setup project builds a MSI, and I'm using custom action. In custom actions I call Install og Uninstall in my SecurityInstaller which inherits System.Configuration.Install.Installer. My SecurityInstaller adds a new security policy for the folder where the user decide to install the Add-In til.

My problem is that this Add-In will not load after installing it at my second PC (tower). The installation goes as normal, and Outlook don't show any messages at startup (I'm using VSTO_SUPPRESSDISPLAYALERTS=0 in env vars). When looking at Add-In's i Outlook (Tools->Options->Other->Advanced options->COM Add-Ins), I see my Add-In listed, but "Load behaviour: Not loaded. A runtime error occurred during the loading of the COM Add-in".


Both PC has XP with SP2 (Home edition on development laptop, and Pro edition on tower), both has Office 2003 SP2.

I've verified that my gode group is shown in Runtime Security Police under .NET Framework 2.0 configuration: I see it under My Computer->Runtime Security Police->Machine->Code Groups->All_Code. This is shown equal on both PC's. So I guess that the security aspect is covered?

So, any suggestions? I'm stugged so far ... how can I debug further into this

Jan Inge

[1646 byte] By [janid1967] at [2008-1-10]