views:

699

answers:

2

I developed a new office 2007 addin using VS 2008 and VSTO. after this i go to Office->Excel Options->AddIns->COM AddIns and GO.. If i select the .dll which i ve created i get an error that " not a valid Office Add In."

If i run it using the visual studio 2008 at my development machine, it works fine and i see the addin.

I searched so many posts but id didn't get a solution.

A: 

Is it a security setting? Do you need to authorise your addin?

Preet Sangha
Yes that is there but its not allowing me to select the dll which i ve created. I have given the necessary permissions.
Sachin
+1  A: 

VSTO does not create COM Addins. You will need to install your add-in on non-development machines. This link should get you started, Adding the Office Primary Interop Assemblies as a Prerequisite in your ClickOnce installer at http://blogs.msdn.com/vsto/archive/2008/05/08/adding-the-office-primary-interop-assemblies-as-a-prerequisite-in-your-clickonce-installer-mary-lee.aspx.

AMissico