Recently i was working with SharePoint Client object model, suddenly I face an issue while accessing fetching SharePoint list data. Error was-The Method “GetItems” of the type “List” with id “{Lists’s Guid}” is blocked by the administrator on the server
After searching over internet i found the solution and it worked for me:
To solve this issue you need to run below powershell command.
$web = Get-SPWebApplication -Identity siteurl
$web.ClientCallableSettings.AnonymousRestrictedTypes.Remove( [Microsoft.SharePoint.SPList],”GetItems”)
$web.Update()
After running this command please refresh your page and hopefully you will see the result.