How do I resolve this exception thrown while trying to do CRUD operations on CSOM?

William Thompson 120 Reputation points
2024-06-14T15:03:35.8266667+00:00

How do I resolve this exception thrown while trying to do CRUD operations on CSOM?

Let me break this down for you. CRUD, of course, means "Create Read Update and Delete". CSOM is the tech for connection C# to a Sharepoint List (or, I assume, also a Microsoft List) in order to programmatically make additions or mortifications to said list from C# code.

I think that, due to the fact that the Microsoft List resides on a highly secure remote source dripping with security systems, I get an exception thrown when I set up a query and perform an "ExecuteQuery" from the ClientContext class. I can provide some source code if necessary but I do not think it is necessary. The question I have is simply this. What would cause a 403 Forbidden error and how can I find a way to resolve it?

User's image

User's image

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,730 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,949 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,561 Reputation points
    2024-06-14T16:22:24.84+00:00

    first CSOM is retired and should not be used for new projects. the error generally means the caller does not have the required permissions to the list. validate the credential you are using to connect.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.