IreneSmith

I have been reading through everybody else's questions about why their addin won't load and I've tried everything I've come across but my Word 2003 addin will not load on anyone's computer but mine.

These are the things I have done so far:

  1. I used the VSTO project template for Word 2003 to create the addin project.
  2. I added the SetSecurity project.
  3. I included output from both SetSecurity and my addin project to the setup.
  4. I installed the interop assemblies for Office 2003 on the target machine. (.Net Framework 2.0 was already installed.)
  5. I installed the VSTO SE runtime.
  6. In stalled my addin.

No addin appears when Word is run. I did some more digging and discovered that the LoadBehavior value in the registry had to be set to 3. I checked out the registry for my addin and it was set to 2. Even if I manually change it to 3, Word still fails to load the addin and sets the value back to 2.

One of the posts I read suggested that it might be a security problem so I tried running CasPol to give my addin's directory full trust, manually changed the registry entry for LoadBehavior to 3 and ran Word. Still no addin and the registry entry was silently set back to 2.

I'm running out of ideas. I've spent almost as much time trying to get the addin to run on a system other than my own as I spent writing the darn thing in the first place. The VSTO documentation hasn't helped me at all. In fact, many of the topics are circular in nature, each referring to another topic that eventually leads me right back to the first. Isn't there some way to diagnose why Word won't run an addin



Re: Visual Studio Tools for Office VSTO 2005 SE Word 2003 addin won't load

Misha Shneerson - MSFT

1. Make sure it is VSTO Runtime that has shipped with VSTO2005SE that is installed on the machine.

2. set VSTO_SUPPRESSDISPLAYALERTS=0 and restart Word (make sure you start Word from the same command prompt you set the env.var.). When VSTO sees this env.var. it will show the dialog with the exception information. And this helps to troubleshoot.






Re: Visual Studio Tools for Office VSTO 2005 SE Word 2003 addin won't load

IreneSmith

I know that the correct runtime is installed because I downloaded and installed it myself.

When started with VSTO_SUPPRESSDISPLAYALERTS=0, Word simply reports that it can't load the addin. The message goes on to say that this could be because Word can't find the file or because of security problems.

If I bring up the System Info. dialog box and look at installed COM addins for Word, my addin is listed but marked as not installed, yet it shows up on the add/remove items list in control panel.

This suggestion gave me another piece of the puzzle, but I must still be missing something.





Re: Visual Studio Tools for Office VSTO 2005 SE Word 2003 addin won't load

Alexander Weinhard

Hi.

I have pretty much the same problem with an Excel 2003-Addin, but with the difference that my addin doesn't even appear in the COM-Addins list and that the load behaviour value remains 3.

I tried to set VSTO_SUPPRESSDISPLAYALERTS=0 but received an error message. How does this work





Re: Visual Studio Tools for Office VSTO 2005 SE Word 2003 addin won't load

Misha Shneerson - MSFT

What is the exact error message




Re: Visual Studio Tools for Office VSTO 2005 SE Word 2003 addin won't load

van_owen

Word has a mechanism to DISABLE add-ins that cause it to encounter "serious errors" when running. The symptoms you've presented indicate that your add-in might have been disabled.

TRY:

Click Help menu.
Click About Microsoft Office Word.
Click Disabled Items
Select the add-in you want to enable and click Enable.

Recompile and re-run your solution.