Excel won't open/launch VSTO AddIn when running in debug mode of Visual Studio 2010

11,298

Solution 1

I've found the issue which was not letting me run my project in 'Debug' configuration mode, though it worked in 'Release' mode. At some point, the AddIn, got hard-disabled (not sure if that's the term to use). At that point, trying to re-enable from within Excel doesn't do anything. Within the registry, there is a folder where disabled AddIns are flagged. I deleted all of the keys from this folder except for "(Default)" and now my AddIn works when launching from Visual Studio 2010 in 'Debug' mode.

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Resiliency\DisabledItems

enter image description here

Solution 2

When you run through Visual Studio 2010 does it hits the breakpoint in the addin_startup event. If not try to debug this way

Hope this helps you

Solution 3

You can reenable a hard-disabled Add-In with Excel

http://msdn.microsoft.com/en-us/library/ms268871(v=vs.80).aspx

Share:
11,298
mservidio
Author by

mservidio

Updated on June 14, 2022

Comments

  • mservidio
    mservidio almost 2 years

    I had previously installed the VS11 beta, and had some issues with my Visual Studio 2010 instance, which you can see here how they were resolved: Excel AddIn Click Once deployment issue.

    Now I have a code base which compiles/builds a vsto, which installs fine and runs fine in Excel 2010. However, when I remove the installed version from Excel, and try to run it directly through Visual Studio 2010, the AddIn does not get loaded into Excel when running in debug configuration mode, in release configuration mode it works fine. Any ideas on why this might be occurring? I've tried re-enabling it through Com AddIns, and a few other things with no luck.