VSTO is not a solution; In Visual Studio 2010, it is built-in.
I found a problem for me with the same error you are getting, is that I installed Office from the download using "Click to run". I downloaded Office on the first installation. This time I actually used the installation DVD, and now my code works fine. If you do not have a DVD, you can download the ISO trial file instead of the “Click to Run” exe.
source share