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.
Related
I recently applied an update to Visual Studio Community 2022 (64-bit).
Current Version is 17.3.4
We still use Web Deploy for some legacy asp.net sites and the Web Publish Activity window is very useful for switching between dev and production environments.
After a recent Visual Studio upgrade I noticed that the Web Publish Activity window was not visible, so I reopened it via View -> Other Windows... and it appeared as expected in the lower window, as a new tab along with Output and Error List.
But after closing my project and reopening it, the Web Publish Activity window is missing again. I tested other windows like PowerShell and Bookmark Window and they ARE maintained after closing and reopening VS.
I also tried saving a new window layout with the Web Publish Activity window open and then reapplying that layout after a VS restart but that had no affect.
It is very annoying to have to go though multiple levels of the View menu to reopen this window every time I open this project.
Does anyone have any advice on how to keep this window locked/pinned?
Is Microsoft trying to "encourage" me to stop using this window?
If there is another way to quickly change between publish profiles that would be acceptable as well, but I cannot find one.
Thank you.
This may be a bug with this particular window (the fact that it doesn't stay pinned after closing Visual Studio that is).
Perhaps as a decent workaround you can at least assign a keyboard shortcut to open this window:
Go to Options → Environment → Keyboard
Filter down to "View.WebPublishAcitvity" or find it in the list
Create a keyboard shortcut of your liking by typing it in the circled red box and then click the Assign button:
After doing that, you should be able to use that shortcut to open the window much faster at least.
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.
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.
Using Visual Studio Enterprise 2015 Update 3, I create a new project following these steps:
File -> New -> Project -> Templates/Visual C#/ Office/SharePoint/Apps
Choose App for Office (.NET Framework 4.5.2)
In Create app for Office window, Check Task pane and do Next
Check Excel, PowerPoint and Word and click Finish
After creating the solution, In Solution Explorer Window, Select the first project (manifest project) and look at the Properties Window.
If I click the Start Action drop down list, I can only see Chrome and Edge browsers (were installed before visual studio).
I have installed FireFox after visual studio and I'm not unable to add it to Start Action drop down list. I want to debug my Office App in FireFox as well.
How can I fix this issue?
An Office add-in running in desktop Office, which it is where it runs when you are debugging it with Visual Studio on a Windows machine, uses IE under the hood. (For more info, see what-browser-browser-engine-do-office-add-ins-use.) You can't change this. The Start Action setting has no effect. You are always using IE when you press F5. In particular, the Start Action of the manifest project is irrelevant because the manifest doesn't run or get loaded into a browser.
If you want to test the add-in in Office Online, you can sideload it, and when you run it, it will use whatever browser you used to open Office Online.
In the past to connect to silverlight apps form Visual Studio I would go to Debug -> Attach To Process and then scroll down to where the type was Silverlight and attach to that.
Recently, silverlight types do not seem to show up in the attach to dialog.
What I have tried
Project Properties -> Web -> Debuggers and ensure Silverlight is ticked
Attaching to the same window as the silverlight is in
What I want to happen
To attach to silverlight apps from Visual Studio
What is happening
Silverlight apps do not show in the Attach To dialog
After a few days I found a solution.
Go to Programs and Features and Uninstall ONLY "Microsoft Silverlight". Once uninstalled go to https://www.microsoft.com/en-us/download/details.aspx?id=40633 and install either Silverlight_Developer.exe or Silverlight_Developer_x64.exe
This fixed the problem for me :)