Did not find the required 'results' property on the object wrapping a feed

Copper Contributor

Hi

I'm trying to update a property using the example here:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoin...)

ClientContext ctx = new ClientContext(site_uri+id);
Web web = ctx.web;
web.title = “new title”;
web.Update();
ctx.ExecuteQuery();

 

 

However I'm getting the following error:

Did not find the required 'results' property on the object wrapping a feed.

Does this indicate something wrong with what I'm sending to the server, or something wrong on the sharepoint server?

 

Thanks

2 Replies

How does your full code look like?

Did you remember to include this?

using Microsoft.SharePoint.Client;

Kind regards, John

Yes I have included that as well.

I can add and create list items, but I cannot seem to update the site title. Is the title a special attribute?