OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
670 stars 96 forks source link

'Error Loading add-ins': Unexpected Resource Access to one of your manifest's resources is denied. Check the <Resources> listed in your XML manifest file. #4816

Closed me-DhanaHarsha closed 1 week ago

me-DhanaHarsha commented 3 weeks ago

We have created a sample custom functions excel addin. When we run it in local, the addin is created successfully and it is working fine in task pane. We copied the compiled folder(dist) to our VM and tried to add it in Windows Excel desktop app, it encountered 'Error Loading add-ins' as shown in the screenshot. And the error is logged as 'Unexpected Resource Access to one of your manifest's resources is denied. Check the listed in your XML manifest file.' Please help us how to fix this error. image

shanshanzheng-dev commented 2 weeks ago

Hi @me-DhanaHarsha Thanks for reporting this issue. Could you share us your manifest? May I know what is your Excel desktop version? Thanks.

me-DhanaHarsha commented 2 weeks ago

manifest.txt Attached is our Manifest file, and we use Excel Office 16 Version. When we deploy to IIS and try add-in, it is working. But when we try with Self hosting deployment, it is not working. Please let me know if you need any other details.

shanshanzheng-dev commented 2 weeks ago

Hi @me-DhanaHarsha Thanks. But the manifest seems not work. If possible, could you give us your test code repo? That will help us repro your issue.

me-DhanaHarsha commented 2 weeks ago

TestRepos.zip Hi @shanshanzheng-dev , please unzip this file and try to install node modules in this and test. Just to highlight, when we create a virtual directory in IIS and point to this, it is working as expected. But when we try to load it in Self hosting, it is not working. Please suggest us if any workaround or something.

shanshanzheng-dev commented 2 weeks ago

Thanks, we check the error message, seem it's not error for custom function. We're afraid it caused by VM network environment configuration~ We'd like to suggest you to try add-in through online environment. From there, you can see more specific error for which resource is not accessed. Or all the resource is not accessed. There are some links you may check: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/testing-and-troubleshooting#when-installing-an-add-in-you-see-error-loading-add-ins-in-the-status-bar https://learn.microsoft.com/en-us/office/dev/add-ins/testing/runtime-logging

microsoft-github-policy-service[bot] commented 1 week ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

microsoft-github-policy-service[bot] commented 1 week ago

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.