Work on same Visual Studio project from 2 computers - visual-studio

I have a VSTO project, with a custom ribbon for Excel and some forms, and I have the following problem: I'm trying to work on the same project on both a PC and on a laptop for mobility (started on PC).
I synchronized the project folder with Dropbox, I installed the certificate on my laptop.
On the PC, no problems. On the laptop, I don't get any errors but when I run it, it does not display the custom ribbon.
Can anyone help me figure out what I'm doing wrong?

First of all, you need to make sure the add-in is loaded by the host application. Try to set a breakpoint and start debugging from VS. If any breakpoint is hit then you need to start working on the ribbon errors. If not, you need to check why the add-in is not loaded by the host application. There are multiple reasons why the add-in may not be loaded, see How to troubleshoot a VSTO addin that does not load? for more information.
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.
To show VSTO Add-in user interface errors you need:
Start the application.
Click the File tab.
Click Options.
In the categories pane, click Advanced.
In the details pane, select Show VSTO Add-in user interface errors, and then click OK.
See How to: Show Add-in user interface errors for more information.

Related

Outlook Office Js addin randomly missing from the ribbon

In outlook desktop, we have recently noticed our addin (looks like all addins) are not loading in the ribbon section. This is not permanent. When we open the profile again, sometimes its there and we cannot find any pattern to this behavior.
Adding screenshots of the same.
From the image, you can see the addin taskpane opens with our addin "Emailgistics". However, the addin does not show up in the ribbon.
Previously, when we opened the profile, the addin was present in the ribbon, we clicked on it to open the task pane, and also pinned the addin. We think this is why the addin task pane opened up as soon as we selected an email.
The issue seems to be isolated with the ribbon. Any help will be much appreciated.
Also adding the outlook desktop version.

Outlook taskpane(officejs) addin not showing on ribbon

I am trying to develop a outlook addin using yoman-generator.
The code runs and opens outlook but the taskpane addin doesnot appear anywhere on the ribbon.
Also checked the disabled and inactive addins but the taskpane is nowhere to be found.
Anyone can help me on this please? And I am using outlook 2016
First of all, you need to check the manifest file for any ribbon UI customizations. If ribbon buttons are not listed there, you will never find them on the UI.
Also checked the disabled and inactive addins but the taskpane is nowhere to be found.
It seems you have checked the list of COM add-ins, not web add-ins in Outlook. On the Home tab you may find the Get Add-ins button which opens the Add-ins dialog where if clicking on the My Add-ins tab on the left side of the window you may find your add-in listed. If it is not listed there you need to add it by pointing to the manifest file. Before doing that you need to make sure the web server where the add-in is hosted is running and files are accessible.

Office/Outlook Add In: Attach debugger not available?

I recently came back to an Outlook add-in project, and I updated all of my Office apps. Outlook is currently Version 1906 (Build 11727.20244 Click-to-Run) on Windows 10 Pro (not running any insider’s version). However, after I open the add-in, no context menu opens when I right-click. I’m trying to debug the add-in running in native Outlook on Windows because something is broken (the same code works fine in OWA and Outlook for Mac).
I’m a bit stuck if I can’t attach a debugger. Nothing shows up in F12 developer tools either. However if I open the Insights add-in, I can right click and attach a debugger as you would expect.
Why would I not be able to even see the right-click context menu in my add-in?
However, after I open the add-in, no context menu opens when I right-click.
Try to create a new empty add-in in Visual Studio. If you get the context menu shown there, you just need to compare both projects and find the difference between them.

Why isn't my outlook addin creating a ribbon section?

I've tried to port over some code that worked in Visual Studio 2013 and adapt it for a new project in Visual Studio 2015 Community Edition with the Office developer addin.
I'm not quite sure what I've done differently, but this time round Outlook 2013 isn't displaying the ribbon tab that I created. It's not disabled, and it's not available in the "Customize Ribbon" dialogue either.
Sorry to be so vague, but I'm at a loss as to what to check and where to start to resolve this. I've attached a quick screengrab showing the tab I was hoping for and the debugger attached to the right outlook instance.
.
Do you get any UI errors?
By default, if an 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 How to: Show Add-in User Interface Errors for more information.
Also you may find the Walkthrough: Creating a Custom Tab by Using the Ribbon Designer helpful.

Re-enable VSTO add-in that is disabled by the Application due to multiple errors

I am writing and debugging an Excel VSTO Ribbon addin and it sometimes crashes due to errors in code. When Excel finally decides it's too much and asked me whether I want to permanantly disable it, I ACCIDENTALLY clicked yes.
Now no matter what I do, I cannot get the addin to automatically load on Excel startup. I go to COMs AddIn dialog and set the checkbox; deleted the registry settings manually; cleaned the project in Visual Studio and rebuilt it -- no use.
Where should I configure to make it auto load my VSTO again? Thanks in advance. btw, it's Excel 2010 on my dev machine.
You have made the addin disabled. To enable it back
Select File => Options then choose Add-Ins.
In the Manage dropdown choose Disabled items and if your addin is listed there just enable it.

Resources