Outlook Add-in for Outlook 2013 app debugger - outlook-addin

I am using Outlook 2013 application to test the Outlook add-in I am creating. At the moment, when I click a button on my add-in, it is just saying App Error and I don't know what is causing it.
Is there a way for me to debug my code to see where the error is coming from?

I depends on your windows version, have a look here.
For Windows 10:
Launch the F12 development tools that corresponds to your version of Office:
For the 32-bit version of Office, use C:\Windows\System32\F12\IEChooser.exe
For the 64-bit version of Office, use C:\Windows\SysWOW64\F12\IEChooser.exe

Related

Outlook Web Add-in for Outlook Desktop CLient. ( Sent Button EVent)

We are working on outlook web add-in. This add-in is supposed to trigger on Send button click event ( while sending email or meeting ).
So far we have seen that this add-in works fine in OWA(https://outlook.office.com/owa) but Outlook Client it is working for a specific version of outlook say Windows 10 Enterprise and Outlook client version 2006 (Build 13001.20384) but for other versions like outlook version 1908 (Build 11929.20904) the send button event is not triggering.
Also, dose send event have any windows OS build version dependency?
e.g
TESTINGVMTWO (Add-in Not Working - Send Button even is not triggering)
Host Name: testvmtwo
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.17763 N/A Build 17763? Not working for this build
Outlook Version: Version 2006 (Build 13001.20384)
TESTING_VM: (Add-in Working send button event triggers and add-in works as expected)
Host Name: Testing-VM
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.19041 N/A Build 19041
Outlook Version: Version 2007 (Build 13029.20308)
Your help or advice is much appreciated.
Regards
Shrirang
Yes, see this article: https://developer.microsoft.com/en-us/office/blogs/microsoft-edge-webview-for-office-add-ins/
Depending on both Office Version and Windows Version, either Edge or IE will be used to render / run your add-in.
This is just a guess, but it is likely there is some code in your add-in that is incompatible with IE. (maybe Arrow Functions?)

Outlook "Attach debugger" not available

I am creating an Outlook Add-in using Office js libraries. I was using the option to attach the debugger to debug my javascript application. But it seems that after an Outlook update the option is no longer available. I have tried reinstalling Office but dit not help. Also i created a new Add In with the default functionality and this has no option to attach the debugger. When i click with the right mouse I see no options. Do i have to enable it in some new way ? Has somebody else seen this problem ?
Beginning with Office 365 version 16.0.11629 and Windows 10 version 1903, Office Add-ins running on Office 365 for Windows will use a Microsoft Edge WebView as the runtime.
The Microsoft Edge WebView performs much better than Internet Explorer and features enhanced compliance with modern browser standards including support of the full set of HTML 5 and ECMAScript 2015+.
We recommend that you download the Microsoft Edge DevTools Preview for debugging.
link

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.)

Outlook add-in commands and macOS version

We are developing an Outlook add-in (using Javascript API version 1.3 and add-in commands) that supports Outlook 2016 for Mac. Our test systems have macOS Siera (10.12.6) but one tester is getting blank task panes and the only thing that is different is her system has macOS El Capitan (10.11.6).
Is there an minimum macOS required for Outlook add-in commands? The only reference to a requirement I could find was an old MS article that pre-dates add-in commands that mentions macOS 10.10.
Or has anyone seen the blank task pane issue? The task panes have a title, but blank content. No add-in error is shown. On the same test system our add-in is working on OWA for Safari.
Thanks
Mac outlook is providing active support only to OS version 10.11 and above. Kindly update the OS and verify if its working.

Cannot Develop Office 2010 Addin Using VS2013 or VS2015 with Office 365 Installed

I have Office 2010 installed (and Office 365 as it happens), and am trying to develop an Outlook 2010 Add-in using VS2013 and VB.
I create a new Outlook 2010 Add In. Compile and Run the default app ("ThisAddIn"). Outlook 2010 opens OK. So far so good. Exit Outlook 2010.
Save the OutlookAddIn project.
Close VS2013
Restart VS2013. Try to open the saved project/ .sln and then get a "One Way upgrade" splash screen. Why...????
Tried the "upgrade", and it fails. "One or more projects in the solution were not loaded correctly...etc etc"
Output windows shows: " The application for the project is not installed" (That seems to indicate the solution "thinks" it's looking for an Office version other than Office 2010, I believe)
Solution Explorer window shows "OutlookAddIn1(loading)...The project file will load in the background" and the "One-way upgrade" splash returns.
Cancel that.
Solution Explorer window now shows "OutlookAddIn1(needs migration)...The project file will load in the background".
I try "Reload Project" in solution explorer. It appears to do so.
I try to run the app again, I get a dialog saying " You cannot debug or run this project, because the required version of Microsoft Office application is not installed".
Check Project Properties and ALL references appear to have gone. (?????)
I've reinstalled VS2010 Tools. That didn't work either.
I have tried VS2015 and get exactly the same behavior.
So....... I uninstalled Office 365 completely. That didn't work either.
Any clues please?
I have solved the problem, but don't know for sure what caused it. I suspect there were some corrupted pointers in Windows that were "confusing" Outlook 2016 with Outlook 2010. The only clues I had to this were that in the Control Panel>Default Items>Set Your Default Programs, the default app for mail was shown as Outlook 2016, but its associated description was all about Outlook 2010.
So I did a complete uninstall of Office 365 (Office 2016) followed by a complete uninstall of Office 2010. I then cleaned out as many registry entries and folders associated with those as I could.
I then reinstalled Office 365, followed by Office 2010. Now I can develop an Outlook 2010 app in VS2013 or 2015 as normal. So the problem is apparently solved without knowing its cause.