0
using (ClientContext context = SharePointManager.ConnectTo(site))
{
    var spTimeZone = context.Web.RegionalSettings;
    context.Load(spTimeZone);
}

Error message as shown:

"Field or property \"RegionalSettings\" does not exist

Double check with the SharePoint site that the Regional Settings is UTC +8. Am I missing something?

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
user1166085
  • 617
  • 3
  • 12
  • 23

1 Answers1

1

Most probably this error occurs since you are using SharePoint Server 2013 Client Components SDK or SharePoint Online Client Components SDK against SharePoint 2010 .

Web class does not expose RegionalSettings property in SharePoint 2010 CSOM.

To summarize, it does not seem possible to retrieve Regional Settings using SharePoint 2010 CSOM since Web class does not expose RegionalSettings property.

How to determine CSOM SDK assembly version?

Assembly assembly = Assembly.GetAssembly(typeof(ClientContext));
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
string version = fvi.FileVersion;

How to determine SharePoint version via CSOM?

using (var ctx = new ClientContext(webUrl))
{
    ctx.ExecuteQuery();
    var version = ctx.ServerLibraryVersion;
}
Vadim Gremyachev
  • 57,952
  • 20
  • 129
  • 193