![]() Plus need to install VSTO Runtime 3.0 form here.ĭouble check you have spelt the registry keys correctly. Net 3.5, and then it worked on the x86 Office! However, if the office version is 32-bit (x86), I get the error after installing. Note: If the Office version is 64-bit (圆4), I only need. A runtime error occurred during the loading of the COM Add-In. Its chewed up heaps of time so I thought I'd share, so if your add-in wont load or its not visible or etc please try these solutions. I know this is old but for various reasons I've recently been troubleshooting Office Add-Ins that dont load. select the check box next to the disabled add-in.In the Manage box, change Disabled Add-ins to COM Add-ins, and then click Go.In the Manage box, change COM Add-ins to Disabled Add-ins, and then click Go.So, how do I re-enable a hard disabled add-in? (I guess a nice message box "You cannot load this add-in because it has been hard-disabled" would be too much to ask. That makes a difference: In the latter case, just going to the COM-AddIn screen and ticking the check box just does nothing. The key to realizing this was to notice that the add-in did not show up under Inactive Application Add-Ins, but rather under Disabled Application Add-Ins. As I've learned, that's something different than the "usual" not-loading scenario. The problem was that the add-in had been hard disabled by Outlook. Here's a bit more detail on RobertG5's solution (too long for a comment): to give me a useful error message instead of just doing nothing when trying to enable the add-in. Instead of more random debugging ("try this.", "try that."), I'd really like to force Outlook and/or VSTO to tell me what's wrong, i.e. Thus, the reason for not loading is not an exception in my add-in but rather a failure of VSTO to load the add-in or of Outlook to load VSTO. I have a Trace.WriteLine message at the very top of my code (first line in the ThisAddIn_Startup handler), which is not reached (I checked with DebugView).(No, the customer cannot tell me what changed on his machine.) It works perfectly fine on other customer machines, and it worked perfectly fine on this machine.Checking its checkbox in "COM add-ins" just does nothing (no error, checkbox is cleared again when entering the form a second time). The add-in shows up as "disabled" in Outlook.LoadBehavior in the registry stays at 3.I've also checked the "usual suspects" (CAS policy, PIAs installed, LoadBehavior in the registry, reinstalling VSTO and the add-in). The add-in just won't load without giving any indication of the reason. Start Outlook with administrative permissions.Add the VSTO_SUPPRESSDISPLAYALERTS environment variable (set to 0).Here's what I tried to get useful troubleshooting output: It works perfectly fine on other machines. The add-in is written with Visual Studio 2008 and uses VSTO 2005 with the 2003 PIAs (because we need to support Outlook 2003 as well). The machine is Windows 7 x86, Outlook 2007. My VSTO Outlook Add-in suddenly stopped working on one customer machine (it does not load, no error message) and I'm stuck with troubleshooting.
0 Comments
Leave a Reply. |