Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Access Denied trace error when running snippet #13

Closed
giorgio79 opened this issue Oct 3, 2015 · 8 comments
Closed

Access Denied trace error when running snippet #13

giorgio79 opened this issue Oct 3, 2015 · 8 comments

Comments

@giorgio79
Copy link

Error (I am using a local network share folder)

{"name":"OfficeExtension.Error","code":"AccessDenied","message":"AccessDenied","traceMessages":[],"debugInfo":{"errorLocation":"Body.getHtml"},"stack":"AccessDenied: AccessDenied\n at Anonymous function (https://eus-appsforoffice.edog.officeapps.live.com/afo/lib/1.1/hosted/word-win32-16.00.js:19:150094)\n at yi (https://eus-appsforoffice.edog.officeapps.live.com/afo/lib/1.1/hosted/word-win32-16.00.js:19:163912)\n at st (https://eus-appsforoffice.edog.officeapps.live.com/afo/lib/1.1/hosted/word-win32-16.00.js:19:163999)\n at d (https://eus-appsforoffice.edog.officeapps.live.com/afo/lib/1.1/hosted/word-win32-16.00.js:19:163819)\n at c (https://eus-appsforoffice.edog.officeapps.live.com/afo/lib/1.1/hosted/word-win32-16.00.js:19:162405)"}
Debug info: {"errorLocation":"Body.getHtml"}

@MIchaelMainer
Copy link
Member

@giorgio79 Can you confirm whether this error occurs on all snippets or just this one? FYI - I've updated the sample to point at the correct CDN.

@giorgio79
Copy link
Author

@MIchaelMainer Thx for coming back. Yes. On all. Here is a new trace with the new location. I am using a local Win 10 network folder I just shared.

Error: {"name":"OfficeExtension.Error","code":"AccessDenied","message":"AccessDenied","traceMessages":[],"debugInfo":{"errorLocation":"Body.getOoxml"},"stack":"AccessDenied: AccessDenied\n at Anonymous function (https://appsforoffice.microsoft.com/lib/1.1/hosted/word-win32-16.00.js:19:150094)\n at yi (https://appsforoffice.microsoft.com/lib/1.1/hosted/word-win32-16.00.js:19:163912)\n at st (https://appsforoffice.microsoft.com/lib/1.1/hosted/word-win32-16.00.js:19:163999)\n at d (https://appsforoffice.microsoft.com/lib/1.1/hosted/word-win32-16.00.js:19:163819)\n at c (https://appsforoffice.microsoft.com/lib/1.1/hosted/word-win32-16.00.js:19:162405)"}
Debug info: {"errorLocation":"Body.getOoxml"}
No content control found.

@giorgio79
Copy link
Author

Possibly related issue that I encountered when trying to get the Word demo going OfficeDev/office-js-docs#23

@MIchaelMainer
Copy link
Member

@giorgio79 I haven't tried using a local network share before. There may be some issue with that (and I don't know what settings to change to make it work at this point). I suggest at this point that you host the application using some http server. Off the top of my head, I'd suggest that you install node package manager (npm), install http-server, run the server at the root of the application, and then point the manifest SourceLocation element at http://127.0.0.1:8080/#/add-in/word.

@MIchaelMainer
Copy link
Member

I'll take a look at this issue and your other issues a bit later.

@giorgio79
Copy link
Author

Thx will look at the localhost option (I use xampp :) It may not be possible, as the Trusted Addin Catalog only seem to accept https locations. Hoping onedrive or sg else can be used for hosting the addon if http fails.

PS: The TrustCenter did accept localhost http, checking it now.

@giorgio79
Copy link
Author

Not sure if you did sg, but the snippet explorer started working from the local network share, so all fine and dandy.
Ps: If it was not you, this helped http://stackoverflow.com/questions/8146926/why-does-ie-restrict-the-javascript-files-of-local-html-pages (had to restart the comp after setting sec levels to min)

@MIchaelMainer
Copy link
Member

Very good to hear!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants