3

We have developed outlook Addins and hosted on Apache Server with SSL certicate installed with it. Some days back it was working absolutely fine on both web as well office outlook client, after windows update and client update it returns Empty blank screen?

Till the Outlook Client version 1808 all looks good in client. After the Update to outlook client 1902 Addin Stopped working on outlook client.

version

The error message in F12 Debugger is thrown is :

error denied

Everything was working fine before update,

Note that this addin is build on Angular version 5 frame work using routes.

Update: I was loading office.js locally from the project not from the CDN, Now when I changes the office.js path in index.html to the cdn link "https://appsforoffice.microsoft.com/lib/1/hosted/office.js" Addins started working back.

But I need something not from CDN because one of our customer has on-primises server and not the office365 .So the problem I found is the office.js loading the outlook-win32.02.js but saying permision denied if loaded from the project and not from the CDN link.

Hope to get some suggestions from the outlook web addin Team....

Ajit Hogade
  • 1,072
  • 9
  • 29
  • This is probably the same issue I have: https://stackoverflow.com/questions/57055215/office-web-add-ins-internal-error-when-saving-settings. There is a failure when saving settings – Niko Jul 18 '19 at 14:56
  • Not exactly, I am facing this problem only in outlook client and it works fine in OWA also , only after updating from 1808 to 1902 all problems started, I think in my case some thing wrong with iframe in which my agular app is running inside the Office Outlook Client. – Ajit Hogade Jul 18 '19 at 15:02
  • Does it work in outlook.com? – Niko Jul 19 '19 at 08:15
  • Yes it works on web . – Ajit Hogade Jul 19 '19 at 10:32
  • Set callback in your `saveAsync()` function and debug the `result`. If it's `failed`, check out the error code. – Niko Jul 19 '19 at 12:03
  • Ajit, I think you're getting the same thing that we are getting. The NuGet package is older than the CDN version, and I suspect Microsoft fixed some issues in the CDN version that is not in the NuGet package. I posted this today: https://stackoverflow.com/questions/57149430/nuget-office-js-is-different-older-than-cdn-office-js – Brian Clink Jul 22 '19 at 15:50
  • @BrianClink please follow the my answer if it solves your problem too – Ajit Hogade Jul 22 '19 at 16:24
  • Thanks again, we decided to use this distribution which also fixes our issue: https://www.npmjs.com/package/@microsoft/office-js – Brian Clink Jul 25 '19 at 15:01

1 Answers1

1

After lots of reasearch I decided to use CDN link "https://appsforoffice.microsoft.com/lib/1/hosted/Office.js", and every thing started work as like before,

Then I decided compare my office.js inside the library with the CDN link javascript then I came to know that office script library is updated and I m having an old package, after reseach I found the github project updated recently , the below link will directly takes to the updated libraby , one can download with your existing one,

"https://github.com/OfficeDev/office-js/tree/release/dist" .

Hope this works for all having this issue.

Ajit Hogade
  • 1,072
  • 9
  • 29