About Me

My photo
I'm currently the CTO for Hedgehog Technology a business dedicated to delivering Cloud based productivity solutions in Logistics

Thursday, December 27, 2007

VSTO 3.0; They have actually made it too easy

In the near future I will present the new VSTO features in Visual Studio 2008 for the MOSSIG crowd. But I want to share this bit of info with you now, just to wet your appetite.

A new publish feature has been added that allows for very smooth and clean publish/click-once experience for Office 2007 Add-ins and the other 2007 Project types such as document templates with code behind.

So I went ahead and published to our local network and logged on to a virgin XP-machine to run the setup. All went well and the solution (and it's pre-requisites) were installed as I expected.
But, when I tried to create a new document using the Word template from my solution I was presented with the following error:

It Indicates that the network location was not 'trusted'. The developer I am and drawing upon my previous experience with .net security I set about finding the caspol commands to fix this, and that does require running an elavated command prompt in Vista etc. Note that this is the day after christmas so I may not have been as alert as I usually am ;-). Anyway, now for the too easy part; all I should have done was go into Word and using the Office button, Word Options, Trust Center add the location as a trusted location..... I know this may strike so of you as very obvious, but I'm assuming most will have the same Aha experience I had, so that's why I'm posting it here. Here's the link to the Office On-line help page that explains the whole thing in detail.

I'll get back to you with more on VSTO 3.0 in the very near future.

Happy New Year,

No comments: