VSTO Troubleshooting Quick Tips
Posted
by João Angelo
on Exceptional Code
See other posts from Exceptional Code
or by João Angelo
Published on Sun, 03 Jul 2011 11:09:20 +0000
Indexed on
2011/11/11
18:22 UTC
Read the original article
Hit count: 619
If you ever find yourself troubleshooting a VSTO addin that does not load then these steps will interest you.
- Do not skip the basics and check the registry at
HKLM\Software\Microsoft\Office\<Application>\AddIns\<AddInName>
orHKCU\Software\Microsoft\Office\<Product>\AddIns\<Application>
because if the LoadBehavior key is not set to 3 the office application will not even try to load it on startup; - Enable error alerts popups by configuring an environment variable
SET VSTO_SUPPRESSDISPLAYALERTS=0
- Enable logging errors to file by configuring an environment variable
SET VSTO_LOGALERTS=1
- Pray for an error alert popup or for an error in the log file so that you can fix its cause.
© Exceptional Code or respective owner