I am retrieving items from SP lists. But when I try to deploy my solution through VS 2013 it says

Access denied. You do not have permission to perform this action or access this resource.

Knowing that I am developing a provider hosted app and retrieving items using CSOM. Someone help me?

Make sure Nedia you follow all the steps explained here: Link.

Or you can refer this example here.

I doubt that there might be some problem with the App permission you are assigning for the app.

Using CSOM you can do your operation but for that first you need to assign the permission to your app to access those functionalities.

Hope this helps!

  • 1
    Thank you, I was having this issue and the problem was with the manifest – yngrdyn Aug 13 '15 at 13:41

In AppManifest.xml file add Permission for your app.

If you are performing CRUD operations on List Or Library then provide necessary Permission based on scope.

eg: We are using Manage Permission for developer on Site Collection Scope.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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