VSTO Add-In Loading Twice

P

Paulem0071

All,

I have posted here before and received great advice. However, I am writing a
VSTO Outlook Add-In, and still have an issue where the Add-In loads twice
When debugging and sometimes starting Outlook 2007.

I have tried Mutex, registry checking and a variety of other methods to no
avail.

Any suggestions? My goal is to ensure only one copy of my Add-In loads and
executes. I have confired the Add-In is loading twice as "ThisAddIn_Startup"
is fired two times.

Thank you.
 
K

Ken Slovak - [MVP - Outlook]

Check in the registry under HKCU\Software\Microsoft\Office\Outlook\Addins
and make sure it's not registered twice, possibly under different clsid's or
names.
 
D

Dave Vespa [MSFT]

Are you using Form Regions? I have seen this issue reported by two other
both using Form Regions.

Dave
 
P

Paulem0071

Not using form regions.

However, here is how I solved it:

Started a brand spanking new VSTO Solution and Project, then cut and pasted
my source code back in class by class. Tedious, but it worked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top