0
votes

I have created a VSTO Excel addin(myAddin) using C#.net.I have the Excel Addin( myAddin) loaded in excel -> addins menu and works fine in my machine.

I have shared the Setup file and installer package file to Users. For some users it runs the code after selecting the addin and works fine without any issues. For some users after selecting the addin it does nothing.It even didnt raise any exception.

When i added logs to the code i realized its not calling the Addin_startup() event .

Any suggestions ?

2
What a wonderful question! Are there any error messages?JohnB
it didnt raise any exception.Is there a way we can find out the info abt the same from event logs.krrishna
To provide you more information when the addin is selected then a windows form will be loaded.When user clicks on the button on thsi form "Submit" a method CreateWorkITems () from the ThisAddin.cs file will be called.When this method is called it automatically calls ThisAddIn_Startup().This call didnt happen to the users where it failed to run the code.krrishna

2 Answers

0
votes

Check this tips for VSTO troubleshooting.

Also see whether your addin is disabled. Check this to enable your addin

0
votes

i am not sure but i had a similar problem. and the reason was i was installing a 32 bit installer on 64 Bit office . you need to put registry keys for 64 bit office separately. check the below link. may be it would help. https://msdn.microsoft.com/en-us/library/bb386106.aspx