VSTO 2010 Outlook add-in shows error message while installing - visual-studio-2010

I have a VSTO 2010 Office 2007 Outlook Add-In deployed from Click-Once. It works on my dev machine and on a standard user machine and fails on another. On the first time it was installed but the add-in didn't appear in Outlook. Then I removed that Add-In in the control panel and deleted the "outcmd.dat" file. When I'm trying to install a new plugin, it shows an error message:
"Microsoft.VisualStudio.Tools.Applications.Deployment.AddInAlreadyInstalledException: The customization cannot be installed because another version is currently installed and cannot be upgraded from this location. To install this version of the customization, first use Add or Remove Programs to uninstall this program: WG plugin. Then install the new customization from the following location: file:///C:/WG25.10.2012/WG plugin-php.vsto
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySolutionCodebaseIsUnchanged(Uri uri, String subscriptionId, Boolean previouslyInstalled)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn() "
Does anyone have any idea what might be causing this?

try this link , you have a command to run in this page,just run it the problem will be fixed. command: "rundll32 dfshim CleanOnlineAppCache"
or try this link
How do I completely uninstall a ClickOnce application from my computer?

Related

Windows UWP App from Visual Studio already installed, can't be uninstalled and won't run

Alright so I have an app called Currency Converter that I made in Visual Studio using UWP. When I try and run it from within Visual Studio I get a dialog box saying "The app "c347c8-blah blah" is already installed on this machine etc"
When I select no nothing happens. When I select yes I get the following error:
Error DEP0900: Failed to unregister application "c347c8cc-961b-43a1-ae91-d83c61cffbf8_1.0.0.0_x86__eq9h3e6grdrp4".
[0x80073CFA] Unspecified error CurrencyConverter
I did notice that two versions of this app seem to be installed on my computer, link they are visible in the apps list in the start menu and in settings. Clicking these apps opens a window for a fraction of a second then it dissapears. Uninstalling them from here has no effect. When i try to uninstall from Apps & Features I get the error code 0x80073cfa.
I've tried cleaning, rebuilding and redeploying the project and the entire solution. This happens without error but the problem persists. I found this alleged solution to the problem link though it would seem that this would be detrimental. link
[Edit] I've tried running this app on other computers and it runs fine there.
The problem is that there is the same package name app was installed in the computer for other user, if you want to install the app, please try to uninstall the previous version or edit current app's package name to prevent conflicts.
Double click your app's Package.appxmanifes-> packaging tab->edit Package name.

Debug Outlook VSTO Plugin from Visual Studio 2017 does not work --> debug not possible removing deployment from Outlook

I created a VSTO Plugin for outlook (2016). During development i could press und debug then outlook started and I could debubg by plugin.
Now I created a deployment and installed it in outlook. Then I removed the installation from outlook by hitting remove in the "Com-AddIns ... "
After that I restarted outlook and tried to Debug my plugin. Outlook still starts but it does not add the plugin to outlook?
So I tried to install the plugin and then try to start debug from visual studio.
Now it says that it could not install the plugin as there is already such a plugin installed.
After that I tried to manually add the Plugin dll by selecting "Add" from the dialog referred to above. I selected the dll from bin\Debug. Outlook says that this is not a proper outlook plugin
do you have any idea what I could do to be able to debug my outlook plugin again?
Best regards
Hannes
I am such a stupid person:
First it is not sufficient to remove the plugin by using the COM-diaog. You need to remove it using System Settings.
After the "old" plugin is removed completey from the system you need to reinstall the debug version. for this doubleclick on the *.vsto file in the bin\debug project of your visual studio project.
This should do the job.
You could use the "VSTOInstaller.exe " to uninstall your add-in. Please refer to the following link:
Uninstalling Office VSTO addins

Outlook 2016 Add-In doesn't work for some users

We've created an Outlook add-in which integrates our custom CRM with Outlook. A command button is added to messages in read and compose mode. A function file is called on the button click.
The add-in manifest passes validation and installs properly on all machines. However on Outlook 2016 desktop (only) we are seeing an error on some machines. The exact error message says: “We’re sorry, we couldn’t access [NCS Outlook Add-in]. Make sure you have a network connection. If the problem continues, please try again later.” ([NCS Outlook Add-In] is the name of our add-in.)
Note that this message appears IMMEDIATELY after clicking the add-in command button. It does not first say “[NCS Outlook Add-in] is working on your request” like it add-ins do when an error has occurred.
We have tried Outlook logging and haven't found anything useful in the logs. We've checked settings and disabled other add-ins. We have also tested across machines with user accounts. The same user will have the error on one machine and not the other. In short, it seems that the error is machine specific and not profile related.
Version of Office 365 installed: 1705 (Build 8201.2209).
We experienced this exact behavior in Outlook 2016, the solution was to enable protected mode for the restricted and internet zones.
The easiest way to change this is in IE.
In Internet Explorer, click the Tools button, and then click Internet Options.
Click the Security tab, and then select the Restricted Sites Zone.
Select the Enable Protected Mode check box, and then click OK.
Restart Internet Explorer.
Here is a little more information:
https://support.microsoft.com/en-us/help/2761180/apps-for-office-don-t-start-if-you-disable-protected-mode-for-the-rest
Try this:
1) Close Outlook
2) Rename the folder C:\Users\%USERNAME%\AppData\Local\Microsoft\Outlook
to C:\Users\%USERNAME%\AppData\Local\Microsoft\Outlook.OLD
(Where %USERNAME% is current User Name.)
3) Start Outlook, Setup User Profile
4) Add/Test Add-In.
If that works, then something broken on old Outlook profile. But if same problem: Exit Outlook, delete the Outlook folder and rename Outlook.OLD back to Outlook.
I ran into this exact same problem after uninstalling Visual Studio 2015 on my development machine. (I had been using Visual Studio 2017 for Outlook add-in development.)
The problem went away as soon as I reinstalled Visual Studio 2017. The Outlook 2016 installation had nothing to do with the problem, I never changed Outlook or its profile at all.
This would indicate that the problem is somehow related to the SDK tooling on the machine...perhaps something to do with the .Net framework?
If I ran into this problem on a customer machine I would try reinstalling or repairing the .Net framework, or perhaps reinstalling Outlook (assuming it contains some add-in tooling that is broken.)
Just passing this on in case it helps anyone else.

Can't launch outlook in visual studio through TFS add-in

I am using visual studio 2013 with Team foundation Server add-in. Opening up a TFS task/bug item, there is a outlook icon button, which allow me to open up outlook new email with the TFS item title.
my visual studio runs in administrator mode.
I have two office versions installed (office 2013 and office 2016.)
Each time when I switch office versions, I will do a repair for the office version. and most time I was using office 2013 and everything works fine including open outlook through TFS add-on.
today, suddenly I couldn't open outlook through the TFS add-on, the error is
Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).
I repaired office 2013, but didn't work.
some one knows other possibilities of the issue?
thanks.
The root issue is that the Version reference for the TypeLib created by the Outlook installation is pointing to a incorrect value.
The root issue is that their is a problem with the Outlook
installation Common Object Model (COM) interface where the version
referencefor the TypeLib entry set by the Outlook installation is
pointing to a incorrect value/version or that version does not point
to a correct location. If you continue to have issues
then you may beed to reinstall Microsoft Outlook. Repairing the
Outlook installation does not fix this issue so a reinstall is
suggested.
Just following the steps mentioned in below article to fix that: https://www.fieldstonsoftware.com/support/support_gsyncit_8002801D.shtml
Just verify that with Regedit.exe, check below keys:
HKEY_CLASSES_ROOT\Interface\{00063001-0000-0000-C000-000000000046}\TypeLib
HKEY_CLASSES_ROOT\TypeLib\{00062FFF-0000-0000-C000-000000000046}
Verify if the type library (GUID should be {00062FFF-0000-0000-C000-000000000046}) is indeed properly registered, using the correct type library version number.
Andy's post is right. you can follow the instructions to find out the issue.
Office 2016 registry key is 9.6, on my machine, even I uninstalled office 2016, the registry key 9.6 still exists at
Computer\HKEY_CLASSES_ROOT\TypeLib{00062FFF-0000-0000-C000-000000000046}
After deleting it, TFS office add-on works fine now. I think the add-on is trying to use the latest version and it causes the issue.

Outlook Add In debug no longer works after uninstalling Click Once installation

I am developing an Outlook 2016 plugin in visual studio. Up until this point, pressing debug in VS would open up Outlook and I could debug perfectly.
I recently published the plugin (using Click Once) and installed it on the same machine to test before sending to client.
I need to do some more development today, pressed debug, but then got an error that the plugin could not be upgraded and to uninstall it.
I uninstalled the plugin.
Now, when I press debug, Outlook opens but the Add In no longer shows up in Outlook.
How can I resume normal development flow after uninstalling the plugin?
Thanks for you help
after uninstalling the plugin you just need to "Clean Solution" from Build menu, then you can continue to debug.
More info in answer found on Microsoft forum
Hope I helped.

Resources