2

I've built an Excel JS Task Pane add-in using the WoodGrove Expense Trends sample and have validated that it runs correctly in Excel 2016 on my machine. However, when I go to Excel Online and try to add the add-in (via uploading the manifest from my machine), I get "Your add-in manifest is not valid."

I'm not sure what it is about this manifest that's valid on my machine but not in Excel Online.

Anyone encountered this before or have any diagnosis ideas? It's somewhat akin to banging my head into a wall at this point.

Matt Eland
  • 348
  • 1
  • 4
  • 13

1 Answers1

3

Taking a guess from looking at the manifest, I would guess that by "runs correctly in Excel 2016 on my machine", you mean that you can "F5" in Visual Studio and it runs correctly. Is that true?

Assuming my assumption is true... the reason it works on desktop through Visual Studio is that VS does a special F5 process where it automatically substitutes the relative web paths with the spun-up IIS location. But the manifest itself is not actually "valid" in that it doesn't have real URLs -- just things like "~remoteAppUrl/App/Auth/About.html" instead of "https://localhost:3000/App/Auth/About.html".

Two things you can do:

  1. Since you already are in Visual Studio, and if you have an Office 365 for Business tenant you could use the actual built-in feature for debugging in Excel Online. Just open the properties pane for the manifest project, and set the start action to Internet Explorer or Chrome. There is a brief mention of this on https://dev.office.com/docs/add-ins/get-started/create-and-debug-office-add-ins-in-visual-studio, search for "start action".

  2. As a more generic approach that works for other hosts (Word, PPT), and that doesn't require an Office 365 for Business account (regular OneDrive consumer would do), follow the steps outlined on my answer at https://stackoverflow.com/a/33155794/678505.

Community
  • 1
  • 1
  • That's helpful. I've replaced my ~remoteAppUrl paths with some temporary paths, but the problem still persists. I should also mention that when I do change the properties of the app to have a start action of a browser (Chrome or IE), VS compiles and looks like it's about to launch, but I get a message of "Deploy Canceled". I do get a lot of warnings in my output on invalid XSI types, but I think these are likely false positives: This is an invalid xsi:type 'http://schemas.microsoft.com/office/taskpaneappversionoverrides:VersionOverridesV1_0'. – Matt Eland Oct 25 '16 at 15:18
  • There might be several side issues here. I am not sure why you are getting "deploy canceled", so that's issue #1. The warnings about the schema are issue #2, though you can generally ignore it (I'm not sure why, but the schema info that VS is reading from seems out of date). – Michael Zlatkovsky - Microsoft Oct 25 '16 at 16:24
  • To be clear, the temporary paths are the ones VS uses on launch? Can you access the site via internet explorer, outside of the Add-in (note, you may need to have the Add-in running via VS F5 in order to get VS to spin up the site). – Michael Zlatkovsky - Microsoft Oct 25 '16 at 16:25
  • Yes I can. I actually used that to debug awhile ago. – Matt Eland Oct 25 '16 at 21:13
  • The Gist is pretty up to date. This was a spike for a research project and we've elected not to go forward with the project as a whole so I'm not going to be investigating it too much more. I think your answer helped identify some of the problems, so I'll mark it as an answer. Thank you for both of your help! – Matt Eland Oct 26 '16 at 17:53