Herman Solberg

Hi!

After solving a minor problem regaring installation parameters for my add-in last week, the installation succeded today. Now a different problem appeared. And I've seen that is a frequently visited topic in this forum, but none of the other threads have helped me so far.

I'm developing a Word 2003 add-in with VSTO 2005 SE and everything is going great as long as I'm running a debug, but as soon as I install the add-in on my development machine it will not load when I start up Word. I've strictly followed the latest walkthroughs on deploying VSTO2005 SE add-ins, so theoretically it should work by now, but NO.

For information about my development setup, read the first post on this thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1858246&SiteID=1

Some help would be greatly appreciated.

//Herman




Re: Visual Studio Tools for Office Problem installing VSTO 2005 SE add-in for Word 2003

Cindy Meister

What kind of security evidence are you specifiying Location and/or strong name and/or digital signature




Re: Visual Studio Tools for Office Problem installing VSTO 2005 SE add-in for Word 2003

Herman S

Thanks for the quick reply Cindy.

According to the walkthrough there are two code groups that should be created if you follow the instructions. One that specifies the Url to the folder where the add-in assembly is located, which has "Nothing" as policy level, and a child group which refers to a strong name and is given the "Full Trust" as policy level.

I checked these code group in the ".NET Framwork 2.0 Configuration", and the installer successfully creates them for me.

//Herman






Re: Visual Studio Tools for Office Problem installing VSTO 2005 SE add-in for Word 2003

Mike Walker

THe next phase is to then check the HKCU\Software\Microsoft\Office\Word\Addins\xxxxxxx where xxxxxx is your project name, there shouldnt be an equivalent in the HKLocal Machine Registry location for VSTO 2005SE addins as well as the LoadBehavior should be set to 3 if this is being changed to 2 then Word is trying to load the addin but is failing somewhere in the process and hence sets this back to 2.

Have you installed on the same machine as your Debug machine AS there will be two locations for the security that you will need to have configured.

Regards






Re: Visual Studio Tools for Office Problem installing VSTO 2005 SE add-in for Word 2003

Herman S

Mike Walker wrote:

THe next phase is to then check the HKCU\Software\Microsoft\Office\Word\Addins\xxxxxxx where xxxxxx is your project name, there shouldnt be an equivalent in the HKLocal Machine Registry location for VSTO 2005SE addins as well as the LoadBehavior should be set to 3 if this is being changed to 2 then Word is trying to load the addin but is failing somewhere in the process and hence sets this back to 2.

Have you installed on the same machine as your Debug machine AS there will be two locations for the security that you will need to have configured.

Regards

My installation tests have so far been limited to my debugging machine. I have another machine ready, waiting for a testable version of my addin.

In the registry there are only entries in the HKCU section for this addin. In the HKLM section there are only entries for "WordDesignTimeAdaptor" which I'm guessing is for debugging, right

The "Load Behavior" entry was set to 2. I changed it to 3 and tried again but the addin still won't load and the value was set back to 2.

I also tried to install it on the testing machine that I mentioned above and experienced exactly the same scenario as on my debugging machine.

//Herman






Re: Visual Studio Tools for Office Problem installing VSTO 2005 SE add-in for Word 2003

Herman Solberg

Does anyone have any more helping info regarding my problem. I'm a little bit desperate at the moment.

If it helps I have uploaded the results of my VSTO 2005 Client Troubleshooter test to a web server for viewing. The images don't display correctly because the files are on my development machine, but the text indicates the result anyway. Follow this Url:

http://www.hermansolberg.com/misc/VSTO2005AnalysisResults.html

Help is always greatly appreciated.

//Herman






Re: Visual Studio Tools for Office Problem installing VSTO 2005 SE add-in for Word 2003

wordyone

Not sure if this will help you, but the latest .Net Framework 2.0 security update (last Tuesday) seemed to have the side-effect of making some Office add-ins stop loading. If you have originally compiled your VSTO project on a machine that did not have the security update, it may cease to load on workstations that have since had the security update applied.

See this post:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1848334&SiteID=1

After you recompile the Add-in on a development machine that has had this security update applied, then reinstall it on the other machines, it should load (you still may need to re apply the full trust settings and set the LoadBehavior registry key back to 3 one more time though).





Re: Visual Studio Tools for Office Problem installing VSTO 2005 SE add-in for Word 2003

Herman Solberg

Thanks for the tip wordyone!

Unfortunately that was not the issue in for me. However I have solved the issue. The problem was caused from not declaring my Office.CommandBarButton and Office.CommandBarButton at the class level. Problem solved by solving another, aparently related issue. Read about it here:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1898999&SiteID=1

//Herman