http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/6f692216-8a1f-4ecf-afe4-98c2a0957e11
does this work for you?