I am developing an App which reads a List in HostWeb. I have granted Read permission to SiteCollection in AppManifest.

While deploying the app it throws a peculiar JavaScript error -

"JavaScript critical error at line 300 column 32 in "https://abc.sharepoint.com/xyz/_layouts/15/appInv.aspx?AppinstanceId=cvzjxh68-7fsd-f987-sdf70........"

enter image description here

This error occurs for all permissions be it list or web or site collection anything.

However, if I remove all permissions, then the app is successfully deployed. It is just that it is not able to access the list. Which is obvious, because it does not have the required permission.

Could anybody please advise, what is going wrong.

How can I assign 'Read' permission to sitecollection and then successfully deploy the app.

  • 1
    You are deploying from Visual Studio with F5, right? Nov 9, 2016 at 12:07

1 Answer 1


It looks like you are experiencing some javascript issues on appinv.aspx page. When running addin, Visual Studio tries to grant permissions to the app first, but because of error, it's not able to grant required permissions.

I can recommend you to open Internet Explorer, press Ctrl+Shift+Del and delete everything - cookies, temp data, etc.
Then reopen your project and try to deploy again.

  • Thanks Kai. The restart worked. However, now the problem is that, the app does not seem to be able to access the specified list in the HostWeb, though I have duly assigned the Read permissions to site collection. It gives me the message "Access Denied. You do not have permission to perform this action or access this resource." Any thoughts. Nov 9, 2016 at 15:12
  • Did you trust the app during the deployment? Nov 9, 2016 at 15:16
  • No I only added the permissions in AppManifest. How do you trust the app. I am only debugging the app as of now, by pressing F5. Nov 9, 2016 at 15:17
  • Try to completely remove the app (retract), then deploy it once again. Nov 9, 2016 at 15:27
  • Retracted and redeployed, but the issue still remains the same, Still the app cannot access the List on the HostWeb. It gives the following message - "Access Denied. You do not have permission to perform this action or access this resource." Nov 9, 2016 at 23:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.