locked
adding permissions to list items console app/CSOM RRS feed

  • Question

  • I have a console app (C#) using CSOM to connect to a sharepoint list, the process deletes items if they exist and then uploads new ones via a CSV file and then it adds permissions to items that meet criteria. Now, the app works fine when I run it from the sharepoint server, however, when I move it to a non sharepoint server, it errors out when trying to add permissions to the data items.

    The following error is kicked back:

    [the remote server returned an error: unauthorized]. Now, I can log into the SharePoint site with the same id the process is running under and add permissions to the list in general. What could be causing this error if I'm able to delete, and insert items into the list from my non-sharepoint site?

    Tuesday, July 12, 2016 2:40 PM

Answers

  • Hi

    Please do the following

    http://www.c-sharpcorner.com/blogs/the-remote-server-returned-an-error-401-unauthorized


    Please remember to click 'Mark as Answer' on the answer if it helps you

    • Marked as answer by Patrick_Liang Tuesday, July 19, 2016 11:12 AM
    Tuesday, July 12, 2016 7:30 PM