Outlook Com Add-in using Office 365 - com

I have a c# COM Add-in developed for Outlook that was created years ago in Visual Studio 2010. It was installed on a computer using Office 2010 and works fine. We are now migrating to Office 365. I installed the Add-in and in Outlook's "File".."Options".."Add-ins" it is listed under the "Inactive Application Add-ins". When I click on the Go button under the "Manage" - "COM Add-ins", the add-in is listed but not checked. When I check it, it shows "Load Behavior: Not loaded. A runtime error occurred during the loading of the COM Add-in." The old Add-in was compiled as 32 bit and I tried to install it as that, then recompiled it as a 64 bit app and installed that but it gives me the same message. Should COM Add-ins work in Office/Outlook 365? Is there something that needs to be updated?

Should COM Add-ins work in Office/Outlook 365?
Yes, they should work correctly. There were no breaking changes.
Microsoft Office applications can disable VSTO Add-ins that behave unexpectedly. If an application does not load your VSTO Add-in, the application might have hard disabled or soft disabled your VSTO Add-in.
Hard disabling can occur when a VSTO Add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your VSTO Add-in is executing.
Soft disabling can occur when a VSTO Add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable a VSTO Add-in if it throws an unhandled exception while the Startup event handler is executing.
When you re-enable a soft-disabled VSTO Add-in, the application immediately attempts to load the VSTO Add-in. If the problem that initially caused the application to soft disable the VSTO Add-in has not been fixed, the application will soft disable the VSTO Add-in again.
Is there something that needs to be updated?
You need to check add-in prerequisites, make sure that all of them were installed correctly. Then try to log all startup operations and see where an exception is thrown.
If you use VSTO, make sure that you did all the steps described in the Deploy an Office solution by using Windows Installer article.

Related

Excel COM add-in for Training The Street no longer loads after another add-in is uninstalled, reinstalling does not work

My TTS Turbo Macro Excel COM add-in was working before I uninstalled Logi Options Plus for the second time.
I tried cleaning up related registry items and reinstalling TTS Turbo Macro add-in and Logi Options Plus but it didn’t help. The load behavior value of 3 for TTS add-in was correct; load count also matches the number of times I launched MS Excel, though the add-in never loaded. To further troubleshoot, I added paths related to TTS add-in to trusted location, but to no avail. I had ran into the similar situations where TTS add-in does not load; reinstalling the OS would fix it but I’d rather not waste that much time on it again. The TTS add-in also has an Excel (non-COM) add-in. When I launch Excel, I could see it’s been loaded, but nothing appears on the ribbon like before. Is there anything else I can do to troubleshoot and fix the issue?
By default, if a VSTO Add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear. See To show VSTO Add-in user interface errors for more information.
Also Microsoft Office applications can disable VSTO add-ins that behave unexpectedly. If an application does not load your VSTO add-in, the application might have hard disabled or soft disabled your VSTO Add-in.
Hard disabling can occur when a VSTO add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your VSTO add-in is executing.
Soft disabling can occur when a VSTO add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable a VSTO Add-in if it throws an unhandled exception while the Startup event handler is executing. Read more about that in the How to: Re-enable a VSTO Add-in that has been disabled article.
But I'd suggest contacting add-in developers instead.

Slow and Disabled Add-ins for Outlook

I have created an add-in for outlook but I cannot get it installed on one person's computer.
Here is the message she gets:
I am posting this on stack as opposed to another site because we are the developers so it might be a development issue.
Here is what I have tried to get rid of this message:
exiting outlook.
uninstalling plugin from control panel.
rebooting computer.
starting outlook and observing that the add-in is gone.
install the add-in using the setup.exe that is generated by visual-studio
observe that add-in is not active and that the error message above is displayed.
This add-on works on several other people's machines.
What is different for this person is that she was the first to have it installed so she had a version that did have a startup issue that I would expect this error.
I suspect that somehow outlook is "remembering" the add-in rather than the add-in is still failing.
Two questions:
What can I do to get it installed?
What can I do to detect this in the add-in so I can report it automatically?
Set your addin's key to 1 in
HKCU\Software\Policies\Microsoft\Office\16.0\Outlook\Resiliency\AddinList
and
HKCU\Software\Microsoft\Office\16.0\Outlook\Resiliency\DoNotDisableAddinList
and delete it from
HKCU\Software\Microsoft\Office\16.0\Outlook\Resiliency\DisabledItems
"16" in the keys above refers to the Outlook version (16 for 2016, 15 for 2013, etc.)

VB.Net Word Add-in has automatically installed itself

I am developing an add-in for Word to add ribbon bar functions for our business.
I am developing the add-in in VB.Net using Windows Visual Studio 2017.
The machine is currently a stand-alone machine that is not connected to the main network.
My issue is that for some reason, the add-in seems to have set itself up in such a way that it appears to have already been installed on the system and loads, with the most updated code, if I just start Word normally.
Any development has been done in Debug mode and I have not been re-building the solution in release mode, and yet anything I change and then run/debug updates the code that the add-in appears to be run off when opening Word directly.
If I go through the options --> add-ins and disable the VTSO add-in it just gets enabled again. I don't seem to be able to separate a debug/development section and live code.
Edit from comments: I can accept that the VTSO needs to be installed and registered but having no separation of live code and development code is frustrating. This machine is used by others for other purposes and this includes using Word, and so any old code must be kept as comments that can set back as the working code should I need to leave part way through. I cannot leave anything partially written as any run the debug mode will set the code as live.
What you're experiencing is normal behavior. When you debug, VSTO registers the add-in in the Windows Registry. This is all that's required for the Office application to find and load the add-in when it starts.
If you disable the add-in in Word, it will remain disabled until you again debug the add-in in Visual Studio.
If you share the machine and want to have the add-in under development disabled for other users:
Work with separate user profiles. VSTO registers its add-ins under CurrentUser, not for all users - VSTO isn't designed to register add-ins for the entire machine. OR
Get into the habit of using Visual Studio's Build/Clean Solution functionality when you leave the machine. That unregisters the add-in (until it runs in debug mode again).

Add-Ins cannot load into Office 2007

I deploy a VSTO 4 file like picture below
It work well in a lot of Computers but some computers my AddIn cannot show. I have checked on the check box in the second picture, but when I restart Word Program and open the dialog "Com Add-Ins" a gain the check box is not checked. My AddIn is not shown.
I have build my AddIn in Visual Studio 2010, output VSTO 4. I deploy into Win XP and Word 2007, .net 4 is installed at the computers.
Please tell me what is the problem, how to fix it.
I encountered this problem as you in one system with excel addin, when the user opened her excel file, the addin was not exist, in this case when I opened excel from start menu and clicking on office button and opening file from there the addin appeared
it is temporary solution, after while when she re-installed the office the problem solved.
Most probably you get an unhandled exception in the code of the add-in.
when I restart Word Program and open the dialog "Com Add-Ins" a gain the check box is not checked. My AddIn is not shown.
Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in.
Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your add-in is executing.
Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable an add-in if it throws an unhandled exception while the Startup event handler is executing.
When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again.
Read more about that in the How to: Re-enable an Add-in That Has Been Disabled article.
Also you can check out the Trust center setting in the host application.

VSTO customization not loading on user PC

Its a long story. I had a simple VSTO excel solution that i build in VS 2005 and Excel 2003. Few years ago we upgraded to Excel 2010 and VS2010. The VSTO solution was upgraded to .xlsm file and everything worked fine.
Recently we upgraded to Office 2013 and VS2013. (Office 2010 was uninstalled and then Office 2013 was installed). I opened the VSTO project and it forcibly upgraded the solution. I published the new version which created the setup.exe in the publish folder. I install the new customization on my dev PC and then open the .xlsm file that was installed on c:\user\abc\appdata\local... on my dev machine and everything works fine.
However, when i install setup.exe on a user machine and open the .xlsm file, even though i dont get any errors, the customizations (buttons etc) are all greyed out. Its as if it didn't even install. I banged my head with this all day today and cant figure it out. PLEASE HELP.
Thank you in advance.
Tarun,
Make sure that all the required prerequsites were installed properly. See Deploying an Office Solution by Using Windows Installer or Deploying an Office Solution by Using ClickOnce for more information.
Also I'd suggest checking the COM Addins list in the application. Is it enabled?
Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in.
Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your add-in is executing.
Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable an add-in if it throws an unhandled exception while the Startup event handler is executing.
When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again. See How to: Re-enable an Add-in That Has Been Disabled for more information.