TimoWo

Hi,

i have an error in my Outlook Add-in, the only Errortext that i have is:

"Load Behavior: Not loaded. A runtime error occurred during the loading of the COM Add-in."

I know that many developers have the same problem, but I did not find a solution :-(

The Add-in works fine in on my developer machine, but not on my test machine (WinXP Prof. Sp2 Outlook 2003)

On the test-machine i have installed:

Install Framework 2.0

Install VSTO Runtime : VSTOR.exe

Office interop assemblies : O2003PIA.EXE

My installer also set the correct regestry keys and i have FullTrust (CAS) for the Add-in.

To get an errortext i tried this:

in cmd:

set VSTO_SUPPRESSDISPLAYALERTS=0

Then run outlook from that cmd line.

But no Error-Box :-(

Please Help me....



Re: Visual Studio Tools for Office Outlook Add-in Not Loaded. Runtime error

Andrew Whitechapel - MSFT

Please supply more details:

Is this a VSTO 2005 Outlook add-in, or a VSTO 2005 SE Outlook add-in

Which version of vstor.exe have you installed

Exactly what did you do to setup FullTrust CAS policy for the add-in What was the caspol commandline you used

What is your add-in doing Also, specifically, what is it doing in ThisApplication_Startup





Re: Visual Studio Tools for Office Outlook Add-in Not Loaded. Runtime error

Nitstheone

I had a similar problem, and the following helped - Open up command prompt and give the following commands

C:\>set VSTO_LOGALERTS=1

C:\>"c:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE"

Set the environment and launch excel through the same command prompt - i think the variable is set as a local variable for that particular command prompt.

now you should have a log in directory where u placed ur plug-in dll. See if the log helps.





Re: Visual Studio Tools for Office Outlook Add-in Not Loaded. Runtime error

Andrew Whitechapel - MSFT

There's been no response on this post for a long time, so I'm closing it now. If you get any further problems with VSTO add-ins, please open a new post.





Re: Visual Studio Tools for Office Outlook Add-in Not Loaded. Runtime error

Bhavik Vora

try writing logs to check if the addin is actually loaded !




Re: Visual Studio Tools for Office Outlook Add-in Not Loaded. Runtime error

Toby Russell

Hi,

Have you made sure all the prerequisites for VSTO are installed on the client machine and that`you have the correct versions Have you strongly named and signed your assemblies and given all of them full trust under CASPOL Have you tried using exception handling blocks to try for catch then display or log errors These are all things I would try in similar circumstances. If you are using Office 2007 you haven't accidently disabled the Advertd In have you If you have it will be marked disabled and you'll not be able to use it until you go to the Add In menu, choose disabled items from the Add In list and uncheck the tick box next to your addin.

I realise this is all very general, but without more detail it's impossible to give more focussed advice. I hope it helped in someway anyhow.

Regards,

Toby